You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Connolly (JIRA)" <ji...@apache.org> on 2018/06/17 21:43:01 UTC

[jira] [Updated] (MNG-1577) dependencyManagement does not work for transitive dependencies

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

Stephen Connolly updated MNG-1577:
----------------------------------
    Fix Version/s:     (was: 3.6.0-candidate)
                   3.6.x-candidate

> dependencyManagement does not work for transitive dependencies
> --------------------------------------------------------------
>
>                 Key: MNG-1577
>                 URL: https://issues.apache.org/jira/browse/MNG-1577
>             Project: Maven
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0
>            Reporter: Joerg Schaible
>            Priority: Major
>             Fix For: 2.0.6, 3.6.x-candidate
>
>         Attachments: MNG-1577-trunk-final.patch, mng1577.patch, mng1577a.patch, mng1577b.patch, mng1577c.patch, mng1577d.patch, mng1577e-trunk.patch, mng1577e.patch, mng1577f.patch, mng1577trunk.patch, site.patch
>
>
> The dependencyManagement does not work for transient dependencies. The specified version is ignored.
> Use case:
> Main POM defines commons-digester-1.6 and commons-beanutils-1.7.0, A-SNAPSHOT and B-SNAPSHOT
> Project A is child of Main and depends directly on commons-beanutils (version inherited from Main)
> Project B is child of Main and depends directly on commons-digester (version inherited from Main)
> Project C is child of Main and depends directly on A & B (versions inherited from Main)
> A is compiled and tests are run using commons-beanutils-1.7.0
> B is compiled and tests are run using commons-digester-1.6 and commons-beanutils-1.6, since digester is dependend on this
> C is compiled and tests are run using commons-beanutils-1.7.0
> Integration tests of B did not verify, that B is behaving as expected in this scenario. B might fail with 1.7.0 and it is not even recognized.
> If I add beanutils also as direct dependency to B, it works fine, but then are transitive dependency useless. It should be possible to define at least in the dependencyManagement, that the versions of transient dependencies also defined in the dependencyManagement have priority.
> - Jörg



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)