Hervé BOUTEMY wrote:

FYI, I just took another pass on OSGi spec and added a link to it in [0] with pointer to the corresponding paragraphs I know of. It is really very very light and doesn't tell anything on comparison for version with qualifiers: I hope I missed something...

Thanks for the pointer Hervé, I think I found the relevant paragraphs: 3.5.3. "Bundle-Version" and 6.1.26.5 "Version.compareTo()". From 3.5.3:

If the qualifier component is not specified, it has a default value of the
empty string ("").

Versions are comparable. Their comparison is done numerically and sequentially
on the major, minor, and micro components and lastly using the String class
compareTo method for the qualifier.

Ignoring for the moment that neither "3.0-!" nor "3.0.0.!" are OSGi-conformant versions, the OSGi version ordering also implies

  3.0 == 3.0.0 < 3.0.0.20090915-152839-2 < 3.0.0.GA < 3.0.0.SNAPSHOT

So I'm not sure how much we can borrow from OSGi for Maven.


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to