Stefan Birkner created MNG-5843:
-----------------------------------
Summary: 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
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 has no relocation).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)