Dependency version range picks version 1.7.2-rc1 when specified as [1.8.0.1,)
-----------------------------------------------------------------------------
Key: MNG-2210
URL: http://jira.codehaus.org/browse/MNG-2210
Project: Maven 2
Type: Bug
Components: Dependencies
Versions: 2.0.3
Environment: Win32
Reporter: Wayne Fay
Added the following dependencies to a new project pom.xml file:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>[3.8.1,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>[1.2.13,)</version>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>[1.8.0.1,)</version>
</dependency>
</dependencies>
This results in:
[INFO] artifact log4j:log4j: checking for updates from central
[DEBUG] log4j:log4j:jar:1.2.13:compile (setting version to: 1.2.13 from
range: [1.2.13,))
[DEBUG] log4j:log4j:jar:1.2.13:compile (selected for compile)
[INFO] artifact junit:junit: checking for updates from central
[DEBUG] junit:junit:jar:4.0:test (setting version to: 4.0 from range:
[3.8.1,))
[DEBUG] junit:junit:jar:4.0:test (selected for test)
[INFO] artifact hsqldb:hsqldb: checking for updates from central
[DEBUG] hsqldb:hsqldb:jar:1.7.2-rc1:compile (setting version to: 1.7.2-rc1
from range: [1.8.0.1,))
[DEBUG] hsqldb:hsqldb:jar:1.7.2-rc1:compile (selected for compile)
Same results with hsqldb version specified as [1.8,) or [1.8.0,) or [1.8.0.0,)
Here's more tests:
<version>1.8.0.1</version>
[DEBUG] hsqldb:hsqldb:jar:1.8.0.1:compile (selected for compile)
<version>[1.8.0.1]</version>
[DEBUG] hsqldb:hsqldb:jar:1.8.0.1:compile (setting version to: 1.8.0.1 from
range: [1.8.0.1,1.8.0.1])
[DEBUG] hsqldb:hsqldb:jar:1.8.0.1:compile (selected for compile)
Not sure why 1.7.2-rc1 is being selected!
You can see all the versions available on Central:
http://www.ibiblio.org/maven2/hsqldb/hsqldb/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira