On 29 Mar 2006, at 13:35, Emmanuel Venisse wrote:
You can use the assembly plugin (http://maven.apache.org/guides/
mini/guide-assemblies.html), it will be the best solution.
The preferred format is what you want ;-) (zip, tar, tar.gz,
tar.bz2, jar...)
Emmanuel
Many thanks for this reply.
After some trial and error, I finally got it to work:
* mylib-dist packaging changed to pom
* the following added to mylib-dist/pom.xml (which must also specify
the dependencies on the jar-files from the other two modules):
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/whatever.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
* added mylib-dist/src/main/assembly/whatever.xml:
<assembly>
<id>applet-jnlp</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
* from mylib/mylib-dist/ ran 'mvn assembly:assembly' to generate
the .zip or 'mvn assembly:directory' to generate a directory
containing the said files
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]