[ 
https://issues.apache.org/jira/browse/MNG-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-5843:
--------------------------------
    Fix Version/s: wontfix-candidate

> Inappropriate version resolution for version range with relocation
> ------------------------------------------------------------------
>
>                 Key: MNG-5843
>                 URL: https://issues.apache.org/jira/browse/MNG-5843
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies
>            Reporter: Stefan Birkner
>            Priority: Major
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>
> I have a dependency with a version range like
> {code:xml}
> <dependency>
>   <groupId>junit</groupId>
>   <artifactId>junit-dep</artifactId>
>   <version>[4,5)</version>
>   <scope>test</scope>
> </dependency>
> {code}
> and I want the newest version according to the version range. In this case it 
> is junit-dep 4.11, but I get 4.11-beta-1.
> This is because the dependency junit-dep has a relocation defined like
> {code:xml}
> <distributionManagement>
>   <relocation>
>     <artifactId>junit</artifactId>
>     ...
>   </relocation>
> </distributionManagement>
> {code}
> Maven takes the first version that has a relocation defined instead of the 
> newest version (4.10 was the last without relocation).



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to