Nord, James wrote:
Hi all,
I'm experimenting with the Unix plug-in and as a test I want to package up an application and all its dependencies into an rpm. If I look at the examples it seems I have to list each jar I want in the rpm by hand which is likely to be error prone. What is the recommended way of getting all runtime dependencies included? My current thinking is to create a tar.gz in a separate module using the dependency plug-in and the assembler and depend on that and use an extract inside the rpm. However this seems like a kludge - so I'm wondering if there is a better way.

I would recommend using the appassembler[1] plugin to assemble the set of JARs and to generate the shell scripts required to create the CLASSPATH and launch the application. For a practical example see the unix-from-jar-project integration test [2].

[1]: http://mojo.codehaus.org/appassembler/appassembler-maven-plugin
The plugin was released in a 1.0 version just today so you might want to upgrade the version used in the integration test.

[2]: http://svn.codehaus.org/mojo/trunk/mojo/unix/unix-maven-plugin/src/it/unix-from-jar-project/pom4test.xml

--
Trygve

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to