You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stevo Slavic (JIRA)" <ji...@codehaus.org> on 2009/05/11 18:53:44 UTC

[jira] Created: (MNG-4156) Local test scope shouldn't override transitive compile scope

Local test scope shouldn't override transitive compile scope
------------------------------------------------------------

                 Key: MNG-4156
                 URL: http://jira.codehaus.org/browse/MNG-4156
             Project: Maven 2
          Issue Type: Improvement
          Components: Dependencies
    Affects Versions: 2.1.0
            Reporter: Stevo Slavic
         Attachments: example.zip

Local test scoped dependencies shouldn't by default override compile scoped transitive dependencies. If one wanted to exclude transitive compile scoped dependency and have it available only in test scope, it would be more natural (for me at least) to require user to specify appropriate excludes section on a dependency that brought transitive dependency with it. In this case (local test scoped vs transitive compile scoped dependency), requiring user to explicitly specify excludes section would more clearly state/document the intention, while currently build tool silently makes a wrong decision (maybe there are times this decision is correct, but IMO it's correct in far less cases than it is wrong).

Attached is example project where current in most cases unwanted behavior can be reproduced.

-- 
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-4156) Local test scope shouldn't override transitive compile scope

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

Brian Fox updated MNG-4156:
---------------------------

    Fix Version/s: 3.x

> Local test scope shouldn't override transitive compile scope
> ------------------------------------------------------------
>
>                 Key: MNG-4156
>                 URL: http://jira.codehaus.org/browse/MNG-4156
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Dependencies
>    Affects Versions: 2.1.0
>            Reporter: Stevo Slavic
>             Fix For: 3.x
>
>         Attachments: example.zip
>
>
> Local test scoped dependencies shouldn't by default override compile scoped transitive dependencies. If one wanted to exclude transitive compile scoped dependency and have it available only in test scope, it would be more natural (for me at least) to require user to specify appropriate excludes section on a dependency that brought transitive dependency with it. In this case (local test scoped vs transitive compile scoped dependency), requiring user to explicitly specify excludes section would more clearly state/document the intention, while currently build tool silently makes a wrong decision (maybe there are times this decision is correct, but IMO it's correct in far less cases than it is wrong).
> Attached is example project where current in most cases unwanted behavior can be reproduced.

-- 
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] Commented: (MNG-4156) Local test scope shouldn't override transitive compile scope

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175973#action_175973 ] 

Wendy Smoak commented on MNG-4156:
----------------------------------

Related thread:  http://www.nabble.com/Transitive-and-inherited-dependencies---potential-bug%2C-or-my--misunderstanding-of-the-mechanism-td23403092.html

> Local test scope shouldn't override transitive compile scope
> ------------------------------------------------------------
>
>                 Key: MNG-4156
>                 URL: http://jira.codehaus.org/browse/MNG-4156
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Dependencies
>    Affects Versions: 2.1.0
>            Reporter: Stevo Slavic
>         Attachments: example.zip
>
>
> Local test scoped dependencies shouldn't by default override compile scoped transitive dependencies. If one wanted to exclude transitive compile scoped dependency and have it available only in test scope, it would be more natural (for me at least) to require user to specify appropriate excludes section on a dependency that brought transitive dependency with it. In this case (local test scoped vs transitive compile scoped dependency), requiring user to explicitly specify excludes section would more clearly state/document the intention, while currently build tool silently makes a wrong decision (maybe there are times this decision is correct, but IMO it's correct in far less cases than it is wrong).
> Attached is example project where current in most cases unwanted behavior can be reproduced.

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