Beyer,Nathan wrote:
> Given a set of versions for a JAR in a repo (1.0, 1.2, 2.0-alpha-1) and
> a version range of [1, 2), should version 2.0-alpha-1 be picked? This
> seems to be the state of affairs for Maven 2.0.4.
> 
> I can understand why the algorithm is picking this, since 2.0-alpha-1 is
> strictly less than 2, but this seems rather undesirable, at least to me.
> Does anyone else see this as incorrect? If this is correct, is there any
> version range syntax to avoid this? How would I express anything with a
> major version of 1 starting at 1.0?

TTBOMK, you cannot.

The nearest you can get is: [1,2-@)

"@" is a very "low" qualifier, probably lower than any qualifier anyone
will actually use. However, it is a quirk of the Maven versioning system
that there is no such thing as a "lowest" qualifier@ given any
qualifier, you can always construct one which is "lower" simply by
appending any character to it.


Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to