I have a multi-module Maven project. One of the modules is responsible for packaging up the outputs of all the other modules into one deliverable. I'm currently hitting a problem where my assembly is unable to gather the output from the other modules, failing with the message:
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o '*:a'
A simplified version of my project layout is show below, where moduleA
is a project that builds a standard jar-with-dependencies output and moduleB
is my module responsible for packaging. The root-level pom.xml
lists moduleA
and moduleB
as modules.
parent
|- moduleA (foo:a)
|- pom.xml
|-src
|- ...
|- moduleB (foo:b)
|- pom.xml
|- src
|- main
|- assembly
|- assembly.xml
|- pom.xml
I have created an assembly descriptor for moduleB
that currently looks like this:
<assembly>
<id>dist</id>
<formats>
<format>tar.gz</format>
</formats>
<moduleSets>
<moduleSet>
<includes>
<include>*:a</include>
</includes>
<binaries>
<attachmentClassifier>jar-with-dependencies</attachmentClassifier>
<outputDirectory>package</outputDirectory>
<dependencySets>
<dependencySet>
<excludes>
<exclude>*:*</exclude>
</excludes>
</dependencySet>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>
</assembly>
I have also listed moduleA
as a dependency of moduleB
in moduleB
's pom.xml
file (compile scope). I have done this because I believe it will force moduleB
to be built after moduleA
; it appears to work.
Can anyone suggest why my moduleB
assembly is not gathering up the jar-with-dependencies output from moduleA
and complaining about the pattern never being triggered?
I have tried specifying the groupId of moduleA
(rather than using a wildcard) but it has not helped. I have also attempted to simplify the assembly descriptor for moduleB
as follows, without any change in result:
<assembly>
<id>dist</id>
<formats>
<format>tar.gz</format>
</formats>
<moduleSets>
<moduleSet>
<includes>
<include>foo:a</include>
</includes>
<binaries>
<outputDirectory>package</outputDirectory>
<dependencySets></dependencySets>
</binaries>
</moduleSet>
</moduleSets>
</assembly>
NEW: A SSCCE for this issue can be found here: http://dl.dropbox.com/u/108474287/parent.zip
Maven version: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)