Axel Fontaine created MASSEMBLY-864:
---------------------------------------
Summary: Dependencies specified in activeByDefault profile not
picked up.
Key: MASSEMBLY-864
URL: https://issues.apache.org/jira/browse/MASSEMBLY-864
Project: Maven Assembly Plugin
Issue Type: Bug
Affects Versions: 3.0.0
Reporter: Axel Fontaine
I have the following dependencySet in my assembly XML:
<dependencySet>
<outputDirectory>jre</outputDirectory>
<includes>
<include>com.oracle:server-jre</include>
</includes>
<unpack>true</unpack>
<unpackOptions>
<includes>
<include>jdk8.74/jre/**/*</include>
</includes>
</unpackOptions>
</dependencySet>
And the following dependency in my pom.xml:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>server-jre</artifactId>
<classifier>linux-x64</classifier>
<version>8.74</version>
<type>tar.gz</type>
<scope>provided</scope>
</dependency>
The dependency gets correctly picked up when it is declared within the main
dependencies section of the POM. However when it is only present within a
profile:
<profiles>
<profile>
<id>CommercialDBTest</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>server-jre</artifactId>
<classifier>linux-x64</classifier>
<type>tar.gz</type>
<scope>provided</scope>
</dependency>
I then get
[WARNING] The following patterns were never triggered in this artifact
exclusion filter:
o 'com.oracle:server-jre'
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)