[
https://issues.apache.org/jira/browse/MNG-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MNG-5843.
-------------------------------
Fix Version/s: (was: wontfix-candidate)
(was: waiting-for-feedback)
Resolution: Incomplete
No feedback for a year.
> 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
>
> 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
(v8.3.4#803005)