You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guy Michaelis <Gu...@orcainteractive.com> on 2008/12/23 19:14:03 UTC
Exclude variable artifacts in assembly plug-in.
I am using maven-assembly-plugin to include libraries into a tar file.
Whenever artifactId is explicitly mentioned in the distribution file
everything is OK, but, when a variable is used, it doesn't exclude the
artifact and throw a warning " The following patterns were never
triggered in this artifact exclusion filter".
Is it possible to use variables in exclude tags?
See distribution.xml
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<formats>
<format>tar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>${module.admin.app.finalName}</outputDirectory>
<excludes>
<exclude>${pom.groupId}:${module.admin.app.name}</exclude>
</excludes>
</dependencySet>
</dependencySets>
</assembly>
And this is the end of build log:
[INFO] Reading assembly descriptor: src/assemble/distribution.xml
[INFO] Processing DependencySet (output=${module.admin.app.finalName})
[WARNING] Cannot include project artifact:
com.orca.integration:plugin-vs-bitband-admin-lib:pom:1.0; it doesn't
have an associated file or directory.
[WARNING] The following patterns were never triggered in this artifact
exclusion filter:
o 'com.orca.integration:plugin-vs-bitband-admin-app}'
[INFO] Building tar :
D:\SNV-Repository\projects-dev\plugin\vs\bitband\admin\lib\target\plugin
-vs-bitband-admin-lib-1.0.tar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Dec 22 12:51:52 IST 2008
[INFO] Final Memory: 10M/19M
[INFO]
------------------------------------------------------------------------
If the exclusion in distribution.xml is changed as below everything
works fine:
<exclude>${pom.groupId}:plugin-vs-bitband-admin-app</exclude>
Guy