I have a multi-module Maven project. One of the modules is responsible for packing all the other modules into one supplied. I am currently facing a problem where my assembly cannot collect the output from other modules without receiving a message:
[WARNING] The following patterns were never triggered in this artifact inclusion filter: o '*:a'
The following is a simplified version of my project layout, where moduleA is the project that creates the standard output jar-with-dependencies 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 created an assembly descriptor for moduleB , which 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 also listed moduleA as the dependency of moduleB in the moduleB pom.xml file (compilation scope). I did this because I believe that moduleA will be created moduleB ; it works.
Can anyone suggest why my assembly moduleB does not collect jar-with-dependations output from moduleA and complains that the template never starts?
I tried to specify groupId moduleA (and not use a wildcard), but that didn't help. I also tried to simplify the assembly descriptor for moduleB as follows, without any changes as a 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 : SSCCE for this problem 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)