Add new mojos to increment project version number and remove SNAPSHOT from 
version number
-----------------------------------------------------------------------------------------

                 Key: MVERSIONS-91
                 URL: http://jira.codehaus.org/browse/MVERSIONS-91
             Project: Maven 2.x Versions Plugin
          Issue Type: New Feature
    Affects Versions: 1.2
            Reporter: Michael Spaulding
         Attachments: set.patch

For users who don't use the maven release plugin, it would be nice to have the 
ability to do some of the same sort of version number manipulations. I'm 
proposing adding two new goals: 

1. increment: increments the project version number

Parameters: 
* versionSegment: The segment in the version number to increment (e.g. 0 = 
increment the major version number, 1 = increment the minor version number)
* addSnapshot: Whether to add SNAPSHOT to the new version number

2. removeSnapshot: removes SNAPSHOT from the project version number

These new mojos would behave the same as the "set" goal in terms of child 
projects, etc. 

I've included code for the proposed mojos along with unit and integration 
tests. I refactored the SetMojo code into a base class that is shared by all 
three mojos. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to