You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/12/04 23:40:03 UTC

[jira] Closed: (MNG-2210) Dependency version range picks version 1.7.2-rc1 when specified as [1.8.0.1,)

     [ http://jira.codehaus.org/browse/MNG-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-2210.
----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: Issues to be reviewed for 3.x)
         Assignee: Benjamin Bentmann

> 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 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.3
>         Environment: Win32
>            Reporter: Wayne Fay
>            Assignee: Benjamin Bentmann
>
> 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