You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2024/02/04 17:34:00 UTC
[jira] [Updated] (MASSEMBLY-864) Dependencies specified in activeByDefault profile not picked up.
[ https://issues.apache.org/jira/browse/MASSEMBLY-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Slawomir Jaranowski updated MASSEMBLY-864:
------------------------------------------
Fix Version/s: waiting-for-feedback
> 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
> Priority: Major
> Fix For: waiting-for-feedback
>
> Attachments: massembly-864.zip
>
>
> 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
(v8.20.10#820010)