<jar destfile="mynewjar.jar"> <zipfileset src="myfirstincludedjar.jar"/> <zipfileset src="mysecondincludedjar.jar"/> </jar>
Obviously, you have to be careful with duplicate contents.
Matt
Stoffels, Ralf (FWI-AW2) wrote:
No, I don't want to put all jars in an extra jar file. I would like to include the classes of my own sub-packages in the normal jar file.
Here is what I meant:
I modified the jar-plugin to expand all dependency jar files with the
property "jar.include" to the jar-file and removed these jar-files from the
dependency list.
(I marked the additional lines with" <!-- new ...".)
Is there anything, which argues against this approach ? Feedback is very welcome!
Ralf
-----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 20. Januar 2004 18:21 An: Maven Users List Betreff: R�f. : One jar-file from several sub-projects
Take a look at the uberjar plugin http://maven.apache.org/reference/plugins/uberjar/
Nicolas
"Stoffels, Ralf (FWI-AW2)" <[EMAIL PROTECTED]> 20/01/2004 16:52 Veuillez r�pondre � "Maven Users List"
Pour : "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc : Objet : One jar-file from several sub-projects
Hi,
I would like to divide my sources in several sub-modules.
Each of these modules has its own set of resources and external
dependencies. So I would like to have one Maven-project per module, but only one jar-file including all sub-modules.
How do I do this in Maven ?
Ralf
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
