You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ossi petz <os...@hallo.ms> on 2007/07/11 18:36:28 UTC

Version Ranges and leading zeros?

Hallo

I am experimenting with version ranges. I read along chapter 3.6 and 
some pages:


http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
http://docs.codehaus.org/display/MAVEN/Extending+Maven+2.0+Dependencies

but things dont seem to work is i would expect it. we are using versions 
like '2007.1.00', '2007.1.01', '2007.1.84'

After 3 releases i am stuck with e version range dependecy:
<version>[2007.2,)</version>

Maven tells me:
Couldn't find a version in [2007.1.00, 2007.2.00, 2007.2.01, 
2007.1.00-SNAPSHOT, 2007.2.00-SNAPSHOT, 2007.3.00-SNAPSHOT] to match 
range [2007.2,)


Maven does download the metadata from the repositores and lists the 
versions. Since the build is not in SNAPSHOT state i would expect maven 
to download '2007.2.01' which is the newest released version.

well it doesnt. my theoie: the leading zeros are confusing maven. the 
docs say 'use integers'. but '01' is an integer. and the version is 
listed in the metadata in the repository. but well... maybe...

so: no leading zeroes allowed in major, minor, revision number??


thanks :)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org