You don't need to set the version in the pom. If you run
"mvn release:prepare -DdryRun=true"
Then it will prompt you for the release version (2.0.0.CR4) and the new trunk version
(2.0.0-SNAPSHOT).
See this also:
http://maven.apache.org/plugins/maven-release-plugin/howto.html
Using the dryRun property, it won't actually commit anything.
Next, run
"mvn release:clean"
This will clean up the stuff that the dryRun option created. I think it's a bug in
the release plugin because the version and svn URL get messed up if you do a dry run and
then a prepare without clean.
The steps to actually do the release are:
mvn release:prepare
mvn release:perform
Prepare does the tag, and perform does the build from the tag.
Last step is you have to commit to cvs in the maven and buildmagic repositories.
I keep meaning to create a wiki entry describing these steps, I just haven't gotten
around to it yet. :)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034840#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...