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

Brett Porter closed MNG-2488.
-----------------------------

         Assignee: Brett Porter
       Resolution: Not A Bug
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

> Version range does not select latest version present in local repository 
> unless used in offline mode 
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MNG-2488
>                 URL: http://jira.codehaus.org/browse/MNG-2488
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.4
>         Environment: Linux 2.6.8-1-686-smp #1 SMP Thu Nov 25 04:55:00 UTC 
> 2004 i686 GNU/Linux
>            Reporter: Stefan Seidel
>            Assignee: Brett Porter
>
> When a version range for a dependency ist specified, M2 look in the given 
> remote repositories only and ignores a newer version in the local repository.
> For example, I use the release plugin to release version 1.0.0 of artifact A 
> (and deploy it to a remote repository), then move on locally to 
> 1.0.1-SNAPSHOT. I continue developing this and do a "mvn install" because I 
> do not necessarily want to deploy a snapshot immediately. If I then build a 
> project B with
>   <dependency>
>     <groupId>mygroup</groupId>
>     <artifactId>A</artifactId>
>     <version>[1.0.0,)</version>
>   </dependency>
> Maven will look in the remote repository and find version 1.0.0, but will 
> ignore my locally installed 1.0.1-SNAPSHOT. However, when using offline mode 
> ("mvn -o package"), 1.0.1-SNAPSHOT is used.
> Workarounds include using offline mode - thus excluding the possibility to 
> retrieve changes in other dependencies, using a fixed version (not very 
> helpful) or deploying each and every snapshot (not helpful because other 
> developers do not need to see snapshots that I use for testing only).

-- 
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

        

Reply via email to