Julien,

I have another, hopefully simple question on the same topic.

Here is the situation. I have a POM that is the PARENT of about 130 other
POMs. In this PARENT POM, I want to configure the maven-assembly-plugin for
its 130 children. This works fine.

My question has to do with who actually brings in the maven-assembly-plugin.
If I bring it in at the PARENT POM, then the PARENT POM gets an assembly
created on its behalf, as well as for all of its children. This is
inappropriate, and I would like to prevent it from happening.

I realize that I could simply put the "invoking" reference to the
maven-assembly-plugin in each of the 130 children, and omit it from the
PARENT POM, and this would solve my problem, however I would prefer to
"invoke" it at the PARENT level and disable its execution in some way so
that only its children actually create the assembly.

Is this possible, or do I have to put the invocation into all children to
achieve this goal?

Thank you again for your excellent help.

  -mark



Julien Simon wrote:
> 
> Hi,
> 
> If you want to re-use an assembly descriptor, the best solution is to
> create
> an artifact containing the assembly descriptor. Then you have to specify
> this artifact as a plugin dependency for maven-assembly-plugin . After
> that,
> you should be able to specify directly your assembly descriptor contained
> in
> the artifact. If you want more details with code examples, you should read
> "the maven definitive guide" from page 303 to 306. It's available at
> http://www.sonatype.com/book/ ,  and there's a good example about how to
> make reusable assembly descriptors.
> 
> Regards,
> 
> Julien Simon.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reusable%2C-in-line-assemblies-user-level-descriptorrefs-tp18114887p18133752.html
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