Hi all,

I am trying to create an assembly in a multimodule project that has
child-parent and module-submodule relations. I want the assembly to contain
the artifact (a jar file) generated by one of the modules, as well as most
of its dependencies. I am using the following assembly descriptor:

 <?xml version="1.0" encoding="UTF-8"?>
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";>
<id>clasp</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<useAllReactorProjects>true</useAllReactorProjects>
<includes>
<include>com.hp.hpl.intueri.clasp.metaphors:xyz-csv2vm</include>
</includes>
<sources>
<fileSets>
<fileSet>
<outputDirectory>/</outputDirectory>
<includes>
<include>src/main/resources/xyz_csv2vm_description.json</include>
<include>src/main/resources/icon.png</include>
</includes>
</fileSet>
</fileSets>
</sources>
<binaries>
<outputDirectory>/</outputDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<excludes>
<exclude>com.hp.hpl.clasp:clasp-sdk</exclude>
<exclude>org.json:json</exclude>
</excludes>
<useTransitiveDependencies>false</useTransitiveDependencies>
</dependencySet>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>
</assembly>

I am configuring the assembly in the parent POM, and assigning the assembly
plugin to the package phase of the module, as explained in the
documentation (
http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html).
While running the "mvn clear package", I am having the following error:

[DEBUG] All known ContainerDescriptorHandler components: [file-aggregator,
metaInf-services, plexus, metaInf-spring]
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'com.hp.hpl.intueri.clasp.metaphors:xyz-csv2vm'

[DEBUG] Resolving project dependencies ONLY. Transitive dependencies WILL
NOT be included in the results.
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'com.hp.hpl.intueri.clasp.metaphors:xyz-csv2vm'

...
..

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] VastXML bindings .................................. SUCCESS [  3.997
s]
[INFO] CLASP service tools ............................... SUCCESS [  1.013
s]
[INFO] Visual metaphor generators ........................ SUCCESS [  0.004
s]
[INFO] StarBurst visual metaphor generator ............... SUCCESS [  0.918
s]
[INFO] StarBurstC visual metaphor generator .............. SUCCESS [  1.102
s]
[INFO] DandelionChina visual metaphor generator .......... SUCCESS [  0.921
s]
[INFO] MSComp CSV2VM ..................................... SUCCESS [  1.185
s]
[INFO] xyz-csv2vm visual metaphor generator .............. SUCCESS [  1.394
s]
[INFO] distribution ...................................... FAILURE [  1.109
s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11.835 s
[INFO] Finished at: 2014-11-06T10:21:27-06:00
[INFO] Final Memory: 20M/224M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.5:single (make-assembly)
on project distribution: Failed to create assembly: Error creating assembly
archive clasp: You must set at least one file. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-assembly-plugin:2.5:single
(make-assembly) on project distribution: Failed to create assembly: Error
creating assembly archive clasp: You must set at least one file.

I have tried to create the assembly using <dependencySets>, assign the
assembly plugin execution to the xyz-csv2vm module, and create a
distribution module as explained in the documentation and some forums, with
no sucess. I am doing anything wrong?, why is that my inclusion filter is
no recognizing my module?

Any help is appreciated,
Carlos Alegria

Reply via email to