You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamás Cservenák (Jira)" <ji...@apache.org> on 2022/05/17 12:05:00 UTC

[jira] [Closed] (MASSEMBLY-919) Transitive dependency of a test dependency is included

     [ https://issues.apache.org/jira/browse/MASSEMBLY-919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamás Cservenák closed MASSEMBLY-919.
-------------------------------------
    Resolution: Incomplete

No response from issue creator for 2+ years, closing out.

> 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.0
>            Reporter: Zsombor Gegesy
>            Assignee: Mark Struberg
>            Priority: Blocker
>              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.20.7#820007)