I'll look more closely but when in doubt I would stay as close to OSGi
version syntax as possible.
I don't think we ever intended to support "!" in a standard way.
On 2009-09-15, at 11:36 PM, Benjamin Bentmann wrote:
Hi,
the ITs of the versions-maven-plugin employ version ranges like "[,
3.0-!)". The interesting question is how something like "3.0-!"
should compare to usual version numbers. For instance, we currently
have
Maven 2.x:
3.0-! < 3.0-SNAPSHOT < 3.0
Maven 3.x, cf. [0]:
3.0-SNAPSHOT < 3.0 < 3.0-!
As you see, there's some disagreement about the ordering which can
affect the result of version ranges that use "3.0-!" as a boundary.
I originally thought those strange version numbers ending in "-!"
would be limited to the plugin ITs but while talking with Stephen he
mentioned he picked this syntax from some other projects.
So, I'm not sure how to handle this discrepancy in version ordering.
Has anybody any insight how common those -! versions really are in
wild projects? Do we need to extend the new version comparison to
handle qualifiers like "!" and some unknown set of similar ones like
2.x does or is this an acceptable change in behavior?
I would say no, I think we have to get to something standard as fast
as we can.
What does 3.0-! mean anyway? I've never seen that syntax in any project.
Benjamin
[0] http://docs.codehaus.org/display/MAVEN/Versioning
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/SonatypeNexus
http://twitter.com/SonatypeM2E
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]