Stephen Connolly closed Bug MVERSIONS-238 as Not A Bug

Maven default versions have some strange rules.

If a version number has three segments and all those segments are numbers and there are no leading zeros, then the versions will be compared segment by segment. If there are leading zeros in any segment then the whole version is treated as a string. If you are comparing a segment version with a string version then string versions are always older.

This is insane... it is also core Maven functionality, which the versions-maven-plugin just reflects for you.

Thus

2012.11.09 < 2013.01.01 < 2013.11.04 < 1.0.0 < 2.0.0 < 2000.10.10 < 2012.11.10 < 2013.11.10

the moral of the story is to understand what the insane Maven version rules are and adapt accordingly

Change By: Stephen Connolly (12/Dec/13 6:51 AM)
Resolution: Not A Bug
Status: Open Closed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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