You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Birkner (JIRA)" <ji...@apache.org> on 2015/06/17 01:16:00 UTC
[jira] [Updated] (MNG-5843) Inappropriate version resolution for
version range with relocation
[ https://issues.apache.org/jira/browse/MNG-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Birkner updated MNG-5843:
--------------------------------
Description:
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).
was:
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).
> 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 was the last without relocation).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)