Andrew,

I've found the Codehaus dependency plugin very useful for this. Check
out the documentation for the unpack-dependencies goal.

The idea would be that you unpack the dependencies into your target
directory before the package phase so that all the classes get packed
up.

http://mojo.codehaus.org/dependency-maven-plugin/howto.html

Do make sure that any 3rd party jar files state in their license that
you can repackage them.

Documentation issue: The dependency plugin isn't listed on the plugin
matrix. Is it a good idea to add it?

Also take a look at the assembly plugin for more complex scenarios.

Cheers,
Dave

-----Original Message-----
From: andrew cooke [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 17, 2006 1:46 PM
To: maven 
Subject: [m2] (Re-)Assembling JAR files



Hi,

We extend an external product, which is packaged as a JAR file.  I have
placed our extensions (which compile fine) in a separate project, but
once they are compiled I need to generate a JAR that merges all the
available classes (ours and the original product) and adds some new
metadata information.

How do I do this?  Is there a plugin that does this, or do I need to
write one msyelf?  If the latter, where can I find documentation to help
me?

Thanks,
Andrew


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




------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


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

Reply via email to