On 12/4/06, nicolas de loof <[EMAIL PROTECTED]> wrote:

AFAIK the <plugins> section is inherited by modules, and the
<pluginmanagement> only defines a common configuration for plugins BUT
does
not enable them on child modules.


Sort of... modules don't inherit anything from their multi-module grouping
projects. Rather, child projects inherit from their parents. Don't confuse
multi-module project management with inheritence (though often they tend to
be the same pom project).

You can then configure commons plugin for all your modules in <plugins> and
define a common configuration for some plugin that are only used in some
modules (but not all). Those module will then only add a <plugin> entry
with
no configuration.

Nico.

2006/12/4, CodingPlayer <[EMAIL PROTECTED]>:
>
>
> Hi,
>
> i just found out about the existence of the <pluginManagement> section
in
> a
> pom.xml.
>
> But i wonder, what is the difference to a <plugin> section??
>
>
> Until now, i only use a <plugin> section in my parent pom.xml, and all
of
> the plugins still work in my sub-projects.
> So, why should i put these plugins under the <pluginManagement> section?
>
> thx 4 help
> R.C.
> --
> View this message in context:
>
http://www.nabble.com/-M2--%3CpluginManagement%3E-vs.-%3Cplugin%3E-in-parent-pom.xml-tf2754489s177.html#a7680557
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to