Hi,

You should try <pluginManagement> node to manage this, see
http://maven.apache.org/pom.html#Plugin_Management.

Cheers.

2008/9/25 tjunak <[EMAIL PROTECTED]>

>
> Hi,
>
> I have a following problem with plugin inheritance.
>
> I have put a plugin with lot of configuration in Parent-Pom, there are lot
> of child-poms in the project.
> Most of them use the plugin configuration but in some cases I have to
> re-define some options.
> Let's say:
>
> Parent-Pom:
>
> <plugin>
> <artifactId>my-plugin</artifactId>
>
>  <configuration>
>
>  <defines>
>   <define>def-A</define>
>   <define>def-B</define>
>  </defines>
>
>  </configuration>
>
> </plugin>
>
> In my real project there are much more such lists and elements.
>
>
>
> Child-Pom:
>
> Here I have to add some special define:
>
> <plugin>
> <artifactId>my-plugin</artifactId>
>
>  <configuration>
>
>  <defines>
>   <define>def-C</define>
>  </defines>
>
>  </configuration>
>
> </plugin>
>
>
> The problem is that when I'm checking this with help:effective-pom I get
> only this:
>
> <defines>
>  <define>def-C</define>
> </defines>
>
> which means whole list is overriden not elements on the list.
>
> My expectation is to get:
>
> <defines>
>  <define>def-A</define>
>  <define>def-B</define>
>  <define>def-C</define>
> </defines>
>
> This causes that in a lot of child-poms I have re-write almost all
> configuration from Parent-Pom which
> of course will be later hard to maintain.
>
> Is there a way to inherit it on list elements level with Maven ?
>
> Thank you in advance!
> --
> View this message in context:
> http://www.nabble.com/Plugin-inheritance-tp19664782p19664782.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]
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to