Assuming the current version is a SNAPSHOT version, then it should remove the SNAPSHOT for the version to be released (and tagged), then it should increment the version and add SNAPSHOT again. I believe the increment increments the lowest non-zero value. When you're using an interactive command-line, it should ask what versions to release and put in the trunk and offers defaults based on what I just mentioned.
For example, if the current version is 1.2-SNAPSHOT, then 1.2 is released and the trunk is left at 1.3-SNAPSHOT. If the version is 1.2.1-SNAPSHOT, then 1.2.1 is released and the trunk is left at 1.2.2-SNAPSHOT. You can test this by using the dryRun property and looking at the pom.xml.XXX files to see what it does. -Nathan > -----Original Message----- > From: Franz Allan Valencia See [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 20, 2006 9:31 PM > To: Maven Developers List > Subject: Re: Review of maven-release-plugin documentation > > Good day to you, John, > > I am not really sure myself, so I'll just forward the question from the > user's mailing list here (as a probable revision to the documentation). > > Does maven-release-plugin automatically increments the version number, or > does the user have to manually specify the version? This question came > from > this thread [1], specifically, this post [2]. > > Thanks, > Franz > > [1] http://www.nabble.com/forum/ViewPost.jtp?post=6382491&framed=y > [2] http://www.nabble.com/forum/ViewPost.jtp?post=6382907&framed=y > > On 9/18/06, John Tolentino <[EMAIL PROTECTED]> wrote: > > > > maven-release-plugin documentation is now ready for review. > > Staging site can be found here: > > > > http://people.apache.org/~jtolentino/maven-release-plugin/ > > > > jira issue: > > > > http://jira.codehaus.org/browse/MRELEASE-141 > > > > Thanks, > > John Tolentino > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]