Re: Execute maven-assembly-plugin twice during package phase

2012-02-23 Thread John Patrick
If you want them to execute at the same phase, then you will need to explicitly add the jar plugin and add it before the assembly plugin to get the order correct. Yep help:effective-pom will how you what the maven understands. On 23 February 2012 06:40, Anders Hammar and...@hammar.net wrote:

Re: Execute maven-assembly-plugin twice during package phase

2012-02-23 Thread pierre46
I really appreciate your help. I've executed the command mvn help:effective-pom and it seems that the jar creation phase is reached first (as specified in the pom.xml). However, I find several jar inside the zip archive created but the executable jar previously created. Here is the pom.xml :

Re: Execute maven-assembly-plugin twice during package phase

2012-02-23 Thread Anders Hammar
First, you have two declarations of the assembly plugin in your pom. That's not correct. Start by consolidating them into one declaration with two executions instead. Secondly, having one project producing more than one artifact is not the Maven way. I'm not sure what you want to do, but I'd

Re: Execute maven-assembly-plugin twice during package phase

2012-02-22 Thread Anders Hammar
Nabble strips attached files. Do you have the executions of the plugin in the right order in the pom? First the jar and then the zip. Also, check the effective-pom (mvn help:effective-pom) to see what Maven is working on. What's the order of the executions there? /Anders On Wed, Feb 22, 2012 at