Hi all,
currently I am trying to execute an assembly that makes use of two
descriptors. I want to package a given artifact as a ZIP (i.e. my product
eclipse plugin) and then include it in an artifact (i.e. my product
distribution) that has a DIR and ZIP format set. The problem is that in the
first descriptor (D1) have ZIP format, but I have the same format into the
second descriptor (D2). As these two descriptors are specified to one given
assembly plugin they share one common <finalName> specified:
<plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-2</version>
                <configuration>
                    <finalName>myproduct-${myproduct.version}</finalName>
                    <appendAssemblyId>false</appendAssemblyId>
                    <descriptors>
                        <descriptor>tools/eclipse/D1.xml</descriptor>
                        <descriptor>assembly/D2.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>

This causes a problem because when the first artifact (A1) is crearted it
has the name myproduct-${myproduct.version}.zip, then this artifact is
overridden by the second artifact (A2) created by D2 execution that need to
include the A1.
So, my question is is it possible to use different names for A1 and A1 when
their descriptors are executed toggether?


Additionally I can read into the assembly log the following note:
"NOTE: If multiple descriptors or descriptor-formats are provided for this
project, the value of this file will be non-deterministic!"

What does it mean? Does it mean that the order of the invocation/execution
of the descriptors is non-deterministic? or what?

Thank you in advance
Dobri

Reply via email to