You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2014/04/29 04:26:10 UTC

[jira] (MSHADE-141) keepDependenciesWithProvidedScope does not work

    [ https://jira.codehaus.org/browse/MSHADE-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=345514#comment-345514 ] 

Olivier Lamy commented on MSHADE-141:
-------------------------------------

keepDependenciesWithProvidedScope concern only the generated dependency-reduced-pom.xml

> keepDependenciesWithProvidedScope does not work
> -----------------------------------------------
>
>                 Key: MSHADE-141
>                 URL: https://jira.codehaus.org/browse/MSHADE-141
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Steve Tynor
>         Attachments: pom-direct.xml, pom-indirect.xml
>
>
> keepDependenciesWithProvidedScope option does not seem to work.
> Expected behavior from both poms is to create an uber jar from the following transitive dependencies: 
> [INFO] Including org.apache.activemq:activemq-client:jar:5.8.0 in the shaded jar.
> [INFO] Including org.slf4j:slf4j-api:jar:1.6.6 in the shaded jar.
> [INFO] Including org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 in the shaded jar.
> [INFO] Including org.fusesource.hawtbuf:hawtbuf:jar:1.9 in the shaded jar.
> [INFO] Including org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1 in the shaded jar.
> I've attached two test cases 
>    mvn -f pom-direct.xml clean install
> will create an empty jar.
>    mvn -f pom-indirect.xml clean install
> will not include the slf4j-api which is a dependency of activemq-client, but is marked provided in the pom.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)