You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dobri Kitipov <kd...@googlemail.com> on 2008/04/22 13:00:53 UTC
Maven assembly with more than one descriptor
Hi all,
I want to provide in my assmbly plugin configuration two <descriptors> (i.e.
mycomp-eclipse-bin-assembly.xml and mycomp-bin-assembly.xml) and be
guaranteed in the order of execution. I mean the first one listed is
executed prior the second one:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>mycomp-bin-${mycomp.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>tools/eclipse/mycomp-eclipse-bin-assembly.xml</descriptor>
<descriptor>assembly/mycomp-bin-assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
In mycomp-eclipse-bin-assembly.xml I set the format to zip. In
mycomp-bin-assembly.xml I set two formats dir and zip (let's say the
generated artifacts should be mycomp-bin-${mycomp.version}.dir and
mycomp-bin-${mycomp.version}.zip).
What I want to achieve is to execute first the
mycomp-eclipse-bin-assembly.xml and then to use the generated zip (let's
call it eclipse.zip) , cited into the mycomp-bin-assembly.xml. Doing so I
will have my assembly containing the eclipse.zip.
Unfortunately I can not succeed doing so. Finally I have
mycomp-bin-${mycomp.version}.dir containing my distribution (without
eclipse.zip) and eclipse.zip but named as mycomp-bin-${mycomp.version}.zip.
I have tried the both maven-assembly-plugin version 2.2-beta-1 and
2.2-beta-2.
Can you advice me how to achieve the scenario I have described?
Thank you in advance.
Regards, Dobri