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:
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";>
clasp
zip
false
true
com.hp.hpl.intueri.clasp.metaphors:xyz-csv2vm
/
src/main/resources/xyz_csv2vm_description.json
src/main/resources/icon.png
/
/
com.hp.hpl.clasp:clasp-sdk
org.json:json
false
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 , 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