This isn't easy to figure out, I think. Here's my guess. The thing that explains this is here: http://maven.apache.org/ref/3.0/maven-artifact/xref/org/apache/maven/artifact/versioning/ComparableVersion.html
This link is found by going to the below referenced link, and then, in that code, clicking on the link to ComparableVersion The part that is relevant is this bit: 148 <http://maven.apache.org/ref/3.0/maven-artifact/xref/org/apache/maven/artifact/versioning/ComparableVersion.html#148> *private* *static* *final* String[] QUALIFIERS = { "alpha", "beta", "milestone", "rc", "snapshot", "", "sp" }; *public* *int* compareTo( Item item ) 220 <http://maven.apache.org/ref/3.0/maven-artifact/xref/org/apache/maven/artifact/versioning/ComparableVersion.html#220> { 221 <http://maven.apache.org/ref/3.0/maven-artifact/xref/org/apache/maven/artifact/versioning/ComparableVersion.html#221> *if* ( item == *null* ) 222 <http://maven.apache.org/ref/3.0/maven-artifact/xref/org/apache/maven/artifact/versioning/ComparableVersion.html#222> { 223 <http://maven.apache.org/ref/3.0/maven-artifact/xref/org/apache/maven/artifact/versioning/ComparableVersion.html#223> /// 1-rc < 1, 1-ga > 1/ This means, I think (I didn't completely understand this code) that if the qualifier string following the dash is one of a small set of strings (such as strings starting with rc or snapshot, etc.) then the rule 1-rc < 1 applies. But if the string following the - is not one of these "well known" strings, then that rule doesn't apply. -Marshall Schor On 10/21/2010 7:14 AM, Stephen Connolly wrote: > Did you read the FAQ? > > http://mojo.codehaus.org/versions-maven-plugin/faq.html#comparisonMethod > > On 21 October 2010 11:56, Moser, Christian <c...@metrohm.com> wrote: >> I've got following effect with the maven versions plugin 1.2. >> >> >> >> If we release a milestone of our software, we declare the components >> which are included in the milestone with [version]-[unrel]-[revision]. >> When the software is in the release process, we remove the additional >> declaration. For example: Version 1.1.0-unrel-0038381 will be >> transformed to 1.1.0, so in fact, 1.1.0 is newer than >> 1.1.0-unrel-0038381. >> >> >> >> I don't know why the plugin acts like this: >> >> >> >> org.codehaus.mojo:versions-maven-plugin:1.2:display-dependency-updates >> will >> >> ... >> >> The following dependencies in Dependency Management have newer versions: >> >> SnakeYAML:SnakeYAML ....................................... 1.2 -> 1.3 >> >> mnet:comp-accessoriesconfig ............. 1.1.0 -> 1.1.0-unrel-0038381 >> >> mnet:comp-accessoriesconfig-if .......... 1.1.0 -> 1.1.0-unrel-0038381 >> >> mnet:comp-accessoriesconfigview ......... 1.1.0 -> 1.2.0-unrel-0039226 >> >> mnet:comp-accessoriesconfigview-if ...... 1.0.0 -> 1.0.0-unrel-0027036 >> >> ... >> >> >> >> Do you know why? >> >> >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > >