RE: Multi-module project - how to use Assembly plugin to create zip file for different target platforms?

2010-06-01 Thread Vandaele, Jan
Hi Nick,

Thanks for your answer. That solved my problem.

Regards
Jan

-Original Message-
From: Nick Stolwijk [mailto:nick.stolw...@gmail.com] 
Sent: dinsdag 1 juni 2010 12:15
To: Maven Users List
Subject: Re: Multi-module project - how to use Assembly plugin to create
zip file for different target platforms?

You are specifying that the assembly id is not used in the name:

false

Set that to true (the default) and put an id in your descriptor files,
then all files will be created.

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Tue, Jun 1, 2010 at 12:00 PM, Vandaele, Jan 
wrote:
> false

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



DISCLAIMER:
Unless indicated otherwise, the information contained in this message is 
privileged and confidential, and is intended only for the use of the 
addressee(s) named above and others who have been specifically authorized to 
receive it. If you are not the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this message and/or attachments 
is strictly prohibited. The company accepts no liability for any damage caused 
by any virus transmitted by this email. Furthermore, the company does not 
warrant a proper and complete transmission of this information, nor does it 
accept liability for any delays. If you have received this message in error, 
please contact the sender and delete the message. Thank you.

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



Re: Multi-module project - how to use Assembly plugin to create zip file for different target platforms?

2010-06-01 Thread Nick Stolwijk
You are specifying that the assembly id is not used in the name:

false

Set that to true (the default) and put an id in your descriptor files,
then all files will be created.

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Tue, Jun 1, 2010 at 12:00 PM, Vandaele, Jan  wrote:
> false

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



Multi-module project - how to use Assembly plugin to create zip file for different target platforms?

2010-06-01 Thread Vandaele, Jan
Hi,

 

I am using a multi-module java project with a root pom to create a zip
file with the assembly plugin. The zip file contains some 3rd party
platform-specific files (dll's for windows, dylib for mac, .so for
linux).

 

This works fine when using following instructions in the root pom:

 

  

maven-assembly-plugin



  false

  myName

  

assembly.xml

  



  

 

Maven is started from command line using "mvn clean package
assembly:assembly"

 

The resulting assembly (zip file) contains all the files that are
platform specific I would like to create a specific zip file for each
target platform, containing only the files for that platform. I could
use a specific assembly.xml file for each target platform, and add this
to the descriptors.

 

  

assemblyWin.xml

assemblyMac.xml

assemblyLinux.xml

  

 

This works, but I cannot specify the final name for each of the
descriptors. The 3 zip files have the same name, so only the last one is
available (the 2 other files are overwritten).

 

I tried specifying different executions for the assembly plugin, but
then I get an error that the assembly descriptors cannot be found.
Apparently this does not work in the root pom of a multi-module project.

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error reading assemblies: No assembly descriptors found.

 

  

maven-assembly-plugin



  

win



  false

  myNameWin

  

assemblyWin.xml

  



  

  

mac



  false

  myNameMac

  

assemblyMac.xml

  



  



  

 

Is there any possibility to have different zip file assemblies without
having to create different root pom's, so I don't need to recompile the
different packages over and over again?

 

Thanks,

 

Jan

 



DISCLAIMER:
Unless indicated otherwise, the information contained in this message is 
privileged and confidential, and is intended only for the use of the 
addressee(s) named above and others who have been specifically authorized to 
receive it. If you are not the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this message and/or attachments 
is strictly prohibited. The company accepts no liability for any damage caused 
by any virus transmitted by this email. Furthermore, the company does not 
warrant a proper and complete transmission of this information, nor does it 
accept liability for any delays. If you have received this message in error, 
please contact the sender and delete the message. Thank you.