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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-specify-multiple-descriptors-on-the-command-line-tf4203464s177.html#a11969541
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to