Hi,

On 1/7/16 1:08 PM, Mehul Sanghvi wrote:
We need to use 5 digit version numbers going forward.  Maven only handles 3
digit version numbers

where is this documented ?

which is simply not true.....

https://cwiki.apache.org/confluence/display/MAVENOLD/Versioning

Since Maven 3 you can use as many version numbers as you like...


using the versions-maven-plugin.  Is there a way to use 5 digits for
project.version ?

What we want to do is use 1.2.3.4.5-SNAPSHOT vs 1.2.3-SNAPSHOT and
1.2.3.4.5 vs 1.2.3 after
the release.

You should simply use it....cause it works...


Furthermore if you use Maven 3.2.5+ you can check the behaviour on command line via: (You have to change the maven-artifact-VERSION.jar accordingly to your Maven installation) this small CLI app which is
included in your maven distribution:

~$ java -jar /usr/share/maven/lib/maven-artifact-3.2.5.jar 1.0.2.5-SNAPSHOT 1.0.2.6-SNAPSHOT Display parameters as parsed by Maven (in canonical form) and comparison result:
1. 1.0.2.5-SNAPSHOT == 1.0.2.5-snapshot
   1.0.2.5-SNAPSHOT < 1.0.2.6-SNAPSHOT
2. 1.0.2.6-SNAPSHOT == 1.0.2.6-snapshot
~$ java -jar /usr/share/maven/lib/maven-artifact-3.2.5.jar 1.0.2.5.0.0-SNAPSHOT 1.0.2.6.0.0-SNAPSHOT Display parameters as parsed by Maven (in canonical form) and comparison result:
1. 1.0.2.5.0.0-SNAPSHOT == 1.0.2.5-snapshot
   1.0.2.5.0.0-SNAPSHOT < 1.0.2.6.0.0-SNAPSHOT
2. 1.0.2.6.0.0-SNAPSHOT == 1.0.2.6-snapshot
~$ java -jar /usr/share/maven/lib/maven-artifact-3.2.5.jar 1.0.2.5.10.0-SNAPSHOT 1.0.2.6.0.0-SNAPSHOT Display parameters as parsed by Maven (in canonical form) and comparison result:
1. 1.0.2.5.10.0-SNAPSHOT == 1.0.2.5.10-snapshot
   1.0.2.5.10.0-SNAPSHOT < 1.0.2.6.0.0-SNAPSHOT
2. 1.0.2.6.0.0-SNAPSHOT == 1.0.2.6-snapshot
~$ java -jar /usr/share/maven/lib/maven-artifact-3.2.5.jar 1.0.2.5.100.0-SNAPSHOT 1.0.2.6.0.0-SNAPSHOT Display parameters as parsed by Maven (in canonical form) and comparison result:
1. 1.0.2.5.100.0-SNAPSHOT == 1.0.2.5.100-snapshot
   1.0.2.5.100.0-SNAPSHOT < 1.0.2.6.0.0-SNAPSHOT
2. 1.0.2.6.0.0-SNAPSHOT == 1.0.2.6-snapshot


Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to