Hi,

Since version 2.4 the developmentVersion MUST be a SNAPSHOT, so that trick will fail nowadays.

I don't see any reason why to skip these last steps.
IMHO: in the tag the version must always be a non-SNAPSHOT, in both trunk and branches the version should always be a SNAPSHOT (expect in that twilight-period right before tagging...) If you don't want to continue development on the project, it should have been a branch, so it can be removed once tagged.

Robert


Op Sat, 05 Jan 2013 17:39:33 +0100 schreef [email protected] <[email protected]>:

Hi Sundeep,

I doubt you can skip the last 2 steps, but you could configure the plugin to "change" the development version to exactly the same version as the release version. Haven't tried this though:

mvn release:prepare -DreleaseVersion={release-version} -DdevelopmentVersion={release-version}

The result should be the same as if the last two steps were skipped.
As I mentioned ... haven't actually tried this :-)

Chris

-----Ursprüngliche Nachricht-----
Von: Sundeep Reddy [mailto:[email protected]]
Gesendet: Samstag, 5. Januar 2013 13:30
An: [email protected]
Betreff: Maven release:prepare

Hi All,

The maven release:prepare does the following things:

release: prepare - Performs a number of operations

   - Checks to make sure that there are no uncommitted changes.
   - Ensures that there are no SNAPSHOT dependencies in the POM file,
   - Changes the version of the application and removes SNAPSHOT from the
   version.  ie 1.0.3-SNAPSHOT becomes 1.0.3
   - Run project tests against modified POMs
   - Commit the modified POM
   - Tag the code in Subversion


   - Increment the version number and append SNAPSHOT.  ie 1.0.3 becomes
   1.0.4-SNAPSHOT
   - Commit modified POM

Is there way where we could skip the last 2 steps i,e increment of the version number and appending the SNAPSHOT . In a way just want to convert the snapshot to a release,no further development version.



Thanks

Sundeep

---------------------------------------------------------------------
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]

Reply via email to