Generating a Standalone App

2009-11-11 Thread Quintin Beukes
Hey,

I have to make a distribution now. It contains a bunch of modules, 2
of which are standalone applications.

How can I generate a JAR for this, which has in it's manifest a
Main-Class and Classpath attribute, and have all the libs taken from
the repo and put in a lib/ subdirectory (which would each then be
referenced in the manifest)?

This basically so I can take this distribution and run it with java -jar ?

Quintin Beukes

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Generating a Standalone App

2009-11-11 Thread Anders Hammar
Google is amazing:
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/

/Anders

On Wed, Nov 11, 2009 at 10:28, Quintin Beukes quin...@last.za.net wrote:

 Hey,

 I have to make a distribution now. It contains a bunch of modules, 2
 of which are standalone applications.

 How can I generate a JAR for this, which has in it's manifest a
 Main-Class and Classpath attribute, and have all the libs taken from
 the repo and put in a lib/ subdirectory (which would each then be
 referenced in the manifest)?

 This basically so I can take this distribution and run it with java -jar ?

 Quintin Beukes

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org