Pom type dependencies are incorrectly included in dependency reduced pom
------------------------------------------------------------------------

                 Key: MSHADE-88
                 URL: http://jira.codehaus.org/browse/MSHADE-88
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: ant elder
         Attachments: drpFix.txt

When shading with promoteTransitiveDependencies and createDependencyReducedPom 
set to true and using dependencies with a type of pom then the dependency 
reduced pom still includes the pom type dependencies, this is incorrect because 
the dependencies of the pom type dependency have already been included in the 
shaded artifact.

The attached patch (based on trunk) fixes this by not including pom type 
dependencies to the dependency reduced pom. There are no existing tests for 
dependency reduced pom's or with pom type dependencies but this patch code does 
match what is already done for pom type dependencies in the ShadeMojo execute 
method at line 409.


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

        

Reply via email to