Hi Lara,
I don't think it's possible to specify the descriptors from the command
line as it seems to be not supported by the assembly plugin.
Maybe you could try using profiles [1] to separate the different types
of descriptors (e.g. different plugin config in each profile) for what
you want to do?
<http://maven.apache.org/guides/introduction/introduction-to-profiles.html>
HTH,
Deng
[1]
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
Lara Brian wrote:
Hi Deng,
Thanks for the reply. Your suggestion (to place the descriptors in the pom)
worked. Thanks a lot. But is there a way to just specify from command line?
The reason i need this is, i have few assembly descriptors (for various
sources, javadocs and few for binaries). I have a plugin that checks for
conflicitng versions in dependencies. I need to run that plugin only for
binaries and not for others. If i specify all the descriptors in the POM i
cannot differentiate one from the other.
I could run individual descriptor by -Ddescriptor option but not descriptors
with -Ddescriptors option. I tried the full path as you specified and still
no luck.
Thanks a lot for any help.
Maria Odea Ching-2 wrote:
Hi,
Try configuring these descriptors in the pom (shown below) instead of
setting it at the command-line. Also, I think the path to the
descriptors should be included instead of just the descriptor filename.
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>path/to/cmp-server.xml</descriptor>
<descriptor>path/to/cmp-client.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
HTH,
Deng
Lara Brian wrote:
Hi All,
How to specify multiple descriptors on the command line when invoking
assebly plugin? What is the separator for the descriptors. I tried
comma/colan but ended up unsuccessful.
I tried,
mvn package assembly:assembly -Ddescriptors=cmp-server.xml,cmp-client.xml
-Dmaven.test.skip=true
but getting,
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error reading assemblies: No assembly descriptors found.
[INFO]
------------------------------------------------------------------------
thanks a lot.
---------------------------------------------------------------------
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]