You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2019/07/24 21:15:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16892186#comment-16892186 ] 

Michael Osipov commented on MNG-5843:
-------------------------------------

Is this one still valid?

> 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
(v7.6.14#76016)