Filters do not work in moduleSet
--------------------------------
Key: MASSEMBLY-493
URL: http://jira.codehaus.org/browse/MASSEMBLY-493
Project: Maven 2.x Assembly Plugin
Issue Type: Bug
Affects Versions: 2.2-beta-5
Environment: java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_21
Java home: C:\Program Files (x86)\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
Reporter: Greg Snyder
Attachments: multimodule-filter.zip
Filtering does not work on a multi-module project. I am trying to exclude one
sub-module with this descriptor:
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>Install-Package</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<excludes>
<exclude>com.med.training:com.med.training.spring.jsf</exclude>
</excludes>
<binaries>
<unpack>false</unpack>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>compile</scope>
<outputDirectory>dependencies</outputDirectory>
</dependencySet>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<outputDirectory>dependencies</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
However, when I run assembly:assembly the project I want to exclude shows up in
the assembly. Also, these warning are show in the maven output:
[INFO] Reading assembly descriptor: assembly.xml
[WARNING] The following patterns were never triggered in this artifact
exclusion filter:
o 'com.med.training:com.med.training.spring.jsf'
[WARNING] Cannot include project artifact:
com.med.training:com.med.training.spring:pom:0.0.1-SNAPSHOT; it doesn't have an
associated file or directory.
[WARNING] The following patterns were never triggered in this artifact
exclusion filter:
o 'com.med.training:com.med.training.spring.jsf'
I've attached a sample project which has this issue. Run "mvn clean package
assembly:assembly" on the root pom file to reproduce the issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira