You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicholas Tung <nt...@ntung.com> on 2009/07/23 03:40:56 UTC
quick question: set version for deploy
Hi all,
Is there a way to set the version for the "mvn deploy" command? I tried
-Dversion=<version>, and -Dproject.version=<version>, and that didn't do
anything. Alternately (maybe even better), is there a command line to bump
[set] the version number in a project and all modules? I see there is the
versions plugin to update dependencies, but that's not quite what I want.
Also, there appear to be bugs when using variables inside the parent pom.xml
for the <version> tag.
Thanks in advance,
Nicholas
https://ntung.com
Re: quick question: set version for deploy
Posted by David Hoffer <dh...@gmail.com>.
Yeah, I too highly recommend the release plugin. It is ideal for going from
snapshots to a final veresion. I can't amagine doing it all manually.
Dave Hoffer
- sent via G1
On Jul 22, 2009 8:06 PM, "David C. Hicks" <dh...@i-hicks.org> wrote:
The version is normally bumped by the maven-release-plugin. The typical
release process would look like:
mvn release:prepare
mvn release:perform
In general, the whole process does several things: change the version
from SNAPSHOT to a release form, build your code to make sure it will
build and tests pass, create a new scm tag with the release version,
bump the version number and relabel it as a SNAPSHOT.
You are, of course, free to manage all of this on your own, but I would
recommend you look at the plugin. It sure is a time saver.
Dave
Nicholas Tung wrote: > Hi all, > > Is there a way to set the version for the
"mvn deploy" comma...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: quick question: set version for deploy
Posted by "David C. Hicks" <dh...@i-hicks.org>.
The version is normally bumped by the maven-release-plugin. The typical
release process would look like:
mvn release:prepare
mvn release:perform
In general, the whole process does several things: change the version
from SNAPSHOT to a release form, build your code to make sure it will
build and tests pass, create a new scm tag with the release version,
bump the version number and relabel it as a SNAPSHOT.
You are, of course, free to manage all of this on your own, but I would
recommend you look at the plugin. It sure is a time saver.
Dave
Nicholas Tung wrote:
> Hi all,
>
> Is there a way to set the version for the "mvn deploy" command? I tried
> -Dversion=<version>, and -Dproject.version=<version>, and that didn't do
> anything. Alternately (maybe even better), is there a command line to bump
> [set] the version number in a project and all modules? I see there is the
> versions plugin to update dependencies, but that's not quite what I want.
> Also, there appear to be bugs when using variables inside the parent pom.xml
> for the <version> tag.
>
> Thanks in advance,
> Nicholas
> https://ntung.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org