You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2008/04/01 18:45:58 UTC

[jira] Created: (MNG-3494) local pom dependencies should get injected before inherited dependencies

local pom dependencies should get injected before inherited dependencies
------------------------------------------------------------------------

                 Key: MNG-3494
                 URL: http://jira.codehaus.org/browse/MNG-3494
             Project: Maven 2
          Issue Type: Bug
          Components: Artifacts and Repositories
    Affects Versions: 2.0.9
            Reporter: Brian Fox


In 2.0.9, we introduced deterministic ordering of dependencies by using linkedHashMaps. When a conflict occurs at the same depth, Maven prefers the first one found. This means that we need to insert the direct dependencies into this list before the inherited ones. Otherwise we have effectively inverted the standard local wins convention.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-3494) local pom dependencies should get injected before inherited dependencies

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox updated MNG-3494:
---------------------------

         Assignee: John Casey
    Fix Version/s: 2.0.9

> local pom dependencies should get injected before inherited dependencies
> ------------------------------------------------------------------------
>
>                 Key: MNG-3494
>                 URL: http://jira.codehaus.org/browse/MNG-3494
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Brian Fox
>            Assignee: John Casey
>             Fix For: 2.0.9
>
>
> In 2.0.9, we introduced deterministic ordering of dependencies by using linkedHashMaps. When a conflict occurs at the same depth, Maven prefers the first one found. This means that we need to insert the direct dependencies into this list before the inherited ones. Otherwise we have effectively inverted the standard local wins convention.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-3494) local pom dependencies should get injected before inherited dependencies

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MNG-3494.
---------------------------

    Resolution: Fixed

> local pom dependencies should get injected before inherited dependencies
> ------------------------------------------------------------------------
>
>                 Key: MNG-3494
>                 URL: http://jira.codehaus.org/browse/MNG-3494
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.9
>            Reporter: Brian Fox
>            Assignee: John Casey
>             Fix For: 2.0.9
>
>
> In 2.0.9, we introduced deterministic ordering of dependencies by using linkedHashMaps. When a conflict occurs at the same depth, Maven prefers the first one found. This means that we need to insert the direct dependencies into this list before the inherited ones. Otherwise we have effectively inverted the standard local wins convention.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira