I've created a plugin I call jarset which may be of interest. 
It creates a directory target/jarset.
It copies everything from src/bin to target/jarset/bin
It copies your jarfile to target/jarset/libs
It copies dependent jars to target/jarset/libs
It zips everything up.
It deploys to maven repo in a directory called jarset (next to the jar
dir).

Typically I put a script in src/bin which sets up the classpath and runs
the program.

I think the deployment part (ArtifactTypeHandler) is pretty icky.

I've attached the source code. Have fun. Send improvements back to me,
but I don't intend to support this....

-christopher



-----Original Message-----
From: KC Baltz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 14, 2005 3:01 PM
To: [email protected]
Subject: How do I package dependent jars in my distribution?


I've searched the archives, seen this question asked a bunch, but never
seen an answer I liked.
 
We're just starting to look at Maven and I'd like to be able to produce
a ZIP file that contains both the jar created from the source of our
project as well as all the jars it depends on.  Is there a good way to
do this in Maven?  Specifically, I'd love an example.  Do any of the
Jakarta projects do this with Maven? 
 
 

K.C. Baltz
Java Developer
707-639-5337 

 

The information contained in this e-mail is confidential. This e-mail is 
intended only for the stated addressee.  If you are not an addressee, you must 
not disclose, copy, circulate or in any other way use or rely on the 
information contained in this e-mail. if you have received this e-mail in 
error, please inform us immediately and delete it and all copies from your 
system.

EBS Dealing Resources International Limited. Registered address: 10 Paternoster 
Square, London EC4M 7DY, United Kingdom. Registered number 2669861.

EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison 
Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building 
F - Floor 3, Parsippany, NJ 07054, USA.

EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer 
Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.

Attachment: jarset.tar.gz
Description: jarset.tar.gz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to