[
https://issues.apache.org/jira/browse/MASSEMBLY-919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937481#comment-16937481
]
Zsombor Gegesy commented on MASSEMBLY-919:
------------------------------------------
Any comment on the proposed patch?
> Transitive dependency of a test dependency is included
> ------------------------------------------------------
>
> Key: MASSEMBLY-919
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-919
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Components: dependencySet, filtering
> Affects Versions: 3.1.1
> Reporter: Zsombor Gegesy
> Priority: Major
> Labels: patch-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I have a simple module, with one compile 'module-a' dependency, and with one
> test dependency ('module-b'), which has a couple of 'compile' dependencies
> (module-b-1, module-b-2, etc)
> In my assembly.xml I have:
> {code:java}
> <dependencySets>
> <dependencySet>
> <useProjectArtifact>true</useProjectArtifact>
> <outputDirectory>tools</outputDirectory>
> <unpack>false</unpack>
> <!-- runtime scope assembles compile and runtime dependencies,
> but skips those with provided scope. -->
> <scope>runtime</scope>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> </dependencySet>
> </dependencySets>
> {code}
> I would assume, that in this case, only 'module-a.jar' ends in the tool
> folder, however, the plugin adds module-b-1, module-b-2, etc too - which is
> not expected, as they are dependencies of 'module-b', which has test scope
> only.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)