You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/01/06 11:55:56 UTC

[jira] Closed: (MNG-2548) Duplicate dependencies with different scope causes confusion

     [ http://jira.codehaus.org/browse/MNG-2548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-2548.
----------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 3.0-alpha-6)

> Duplicate dependencies with different scope causes confusion
> ------------------------------------------------------------
>
>                 Key: MNG-2548
>                 URL: http://jira.codehaus.org/browse/MNG-2548
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.4
>         Environment: Win XP
>            Reporter: Andre Ranvik
>            Priority: Minor
>
> When having duplicate dependencies, where one has a scope of compile, and another has a scope of runtime, Maven 2 will use the last scope (I think), and if this is the runtime, then the compile dependency is ignored. This can be confusing because there *is* a compile dependency provided in the pom, and if anything - both dependencies should be in use (meaning: compile, since it also includes runtime). An even better approach would be to halt the operation with a nice, sweet error message explaining the problem. I can't see any reason why one would want to have two dependencies, so it is better to ask the user to fix it, as opposed to having some kind of default behavior..?

-- 
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