Wendy Smoak wrote:
On Fri, Jun 27, 2008 at 4:32 PM, Sahoo <[EMAIL PROTECTED]> wrote:
I have the following scenario:
project B's pom.xml inherits from project A's pom.xml. A's pom.xml has
configured certain plugin to be executed as part of a project's life cycle.
I don't want the plugin to be active while building B. Is there a simple way
to disable that plugin in B's pom.xml? If yes, what is it? If no, why is
this facility not available to user?

Depending on what the plugin is and what does (specific examples are
better than A and B...) you might be able to override the
configuration in the child to skip execution,
AFAIK, this is plugin specific. Many plugins don't expose a simple way to be skipped.
 or set the the
<inherited> element to false so that it only executes in the parent
and not the child, or configure it to aggregate results.
Pardon my ignorance, but <inherited> needs to be set in the parent project, right? In that case, it actually disables the plugin in all the derived projects, which I don't want. I actually many derived projects (like B2,...,Bn) who wants the plugin to be executed; it's just that a particular Bi is not interested in it. I am wondering why there is not a simple way like <inherited>false</inherited> in child POM?

Thanks,
Sahoo

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

Reply via email to