jar-with-dependencies won't work for a "pom" project.
You need to use <moduleSets>...
Please see
http://maven.apache.org/plugins/maven-assembly-plugin/examples/index.html.
Damien Viel wrote:
Hi all,
I still have problem with the assembly plugin. :(
I'm trying to build a zip file of my project which includes the
modules's jars and there dependencies.
With the standard goals "jar-with-dependencies" it works fine on each
modules. But when I call the goal from the parent pom, the assembly is
empty.
I'm using 2.2-SNAPSHOP version of the assembly plugin.
My project struture is as follows :
* Parent Projet
* pom.xml
*-- Module 1
* pom.xml
*-- Module 2
* pom.xml
Here is my descriptor file :
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>zip</format>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
Thank's all
Damien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]