-
Improvement
-
Resolution: Not A Defect
-
Major
-
None
-
m2release 0.6.1
If you have a versionnumber with leading zero (to fill a constant string length) the method M2ReleaseAction.computeNextVersion() strip this zeros from the version string for the next version.
I have wrote a patch for that.
Have a look at https://github.com/kreyssel/hudson-plugins/commit/7572cc1a51c16b4c81adc978ad0ebe315addf73c
It would be nice if you can include this in the official release version.
Thanks.
Thanjs for the patch and testcase, however I have a concern about this,
That is these versions (starting with leading zero are not valid maven versions.
That is 1.002.1 is not majer=1 minor=2 patch=1 buildnum=null qualifier=null
but major=0 minor=0, patch=0 buildnum=0 qualifier="1.002.1"
see http://svn.apache.org/viewvc/maven/maven-2/tags/maven-2.2.1/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java?view=markup