[
https://issues.apache.org/jira/browse/MASSEMBLY-865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yoann Rodière updated MASSEMBLY-865:
------------------------------------
Description:
When a multi-module project has the following modules:
* prefix
* prefix-suffix
* assembly
... with "prefix-suffix" depending on junit for instance, "prefix" depending on
nothing, and "assembly" depending on both "prefix" and "prefix-suffix".
Then adding the following in the assembly descriptor will result in
"prefix-suffix.jar" and "junit.jar" being present in "lib/prefix/", while we
would only expect it in "lib/prefix-suffix/":
{code}
<dependencySets>
<dependencySet>
<outputDirectory>lib/prefix</outputDirectory>
<scope>runtime</scope>
<useTransitiveDependencies>true</useTransitiveDependencies>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>test:prefix</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>lib/prefix-suffix</outputDirectory>
<scope>runtime</scope>
<useTransitiveDependencies>true</useTransitiveDependencies>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>test:prefix-suffix</include>
</includes>
</dependencySet>
</dependencySets>
{code}
Patch with failing integration test coming (I need the JIRA key).
was:
When a multi-module project has the following modules:
* prefix
* prefix-suffix
* assembly
... with "prefix-suffix" depending on junit for instance, "prefix" depending on
nothing, and "assembly" depending on both "prefix" and "prefix-suffix".
Then adding the following in the assembly descriptor will result in
"prefix-suffix.jar" and "junit.jar" being present in "lib/prefix/", while we
wouldn't only expect it in "lib/prefix-suffix/":
{code}
<dependencySets>
<dependencySet>
<outputDirectory>lib/prefix</outputDirectory>
<scope>runtime</scope>
<useTransitiveDependencies>true</useTransitiveDependencies>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>test:prefix</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>lib/prefix-suffix</outputDirectory>
<scope>runtime</scope>
<useTransitiveDependencies>true</useTransitiveDependencies>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>test:prefix-suffix</include>
</includes>
</dependencySet>
</dependencySets>
{code}
Patch with failing integration test coming (I need the JIRA key).
> dependencySet "include" seems to implicitly append wildcards to simple
> groupId:artifactId values
> ------------------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-865
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-865
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Components: dependencySet
> Affects Versions: 2.6, 3.0.0, 3.1.0
> Reporter: Yoann Rodière
>
> When a multi-module project has the following modules:
> * prefix
> * prefix-suffix
> * assembly
> ... with "prefix-suffix" depending on junit for instance, "prefix" depending
> on nothing, and "assembly" depending on both "prefix" and "prefix-suffix".
> Then adding the following in the assembly descriptor will result in
> "prefix-suffix.jar" and "junit.jar" being present in "lib/prefix/", while we
> would only expect it in "lib/prefix-suffix/":
> {code}
> <dependencySets>
> <dependencySet>
> <outputDirectory>lib/prefix</outputDirectory>
> <scope>runtime</scope>
> <useTransitiveDependencies>true</useTransitiveDependencies>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> <includes>
> <include>test:prefix</include>
> </includes>
> </dependencySet>
> <dependencySet>
> <outputDirectory>lib/prefix-suffix</outputDirectory>
> <scope>runtime</scope>
> <useTransitiveDependencies>true</useTransitiveDependencies>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> <includes>
> <include>test:prefix-suffix</include>
> </includes>
> </dependencySet>
> </dependencySets>
> {code}
> Patch with failing integration test coming (I need the JIRA key).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)