You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Max Bowsher (JIRA)" <ji...@codehaus.org> on 2008/04/21 12:46:55 UTC

[jira] Updated: (MSHADE-31) When promoteTransitiveDependencies=true, all are stripped from the dependency-reduced-pom

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

Max Bowsher updated MSHADE-31:
------------------------------

    Attachment: pom.xml

Here is a pom.xml that demonstrates the problem.

In this project, commons-httpclient is depended upon and shaded into the jar, whilst independently, hibernate-annotations is depended upon with an exclusion of hibernate itself.

Run "mvn package", then inspect target/dependency-reduced-pom.xml - the <exclusions> have been stripped out, resulting in unwanted addition of hibernate to the effective resolved dependency set.

If promoteTransitiveDependencies is turned off, this bug does not occur.





> When promoteTransitiveDependencies=true, all <exclusions> are stripped from the dependency-reduced-pom
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MSHADE-31
>                 URL: http://jira.codehaus.org/browse/MSHADE-31
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>         Environment: Maven 2.0.9, Linux.
>            Reporter: Max Bowsher
>         Attachments: pom.xml
>
>
> When promoteTransitiveDependencies=true, all <exclusions> are stripped from the dependency-reduced-pom.

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