You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Saminda Abeyruwan <sa...@gmail.com> on 2007/01/15 12:57:06 UTC

Inheriting plugin executing

Hi All,

Say my parent pom.xml has a pluging to execute some goal on the
initialization phase. If this pom is the parent of app1 pom.xml and app2
pom.xml ie

pom.xml
   - app1
         pom.xml
   - app2
         pom.xml

when the reactor is working, the code in the initialization phase repeats.
Is there a way to stop this. Only parent pom.xml will do some unit of work,
but it doesn't need to inherit to its children poms.

Thank you

Saminda

-- 
Saminda Abeyruwan

Software Engineer
WSO2 Inc. - www.wso2.org

Re: Inheriting plugin executing

Posted by Tom Huybrechts <to...@gmail.com>.
Add <inherited>false</inherited>  to the <plugin/> element.

On 1/15/07, Saminda Abeyruwan <sa...@gmail.com> wrote:
> Hi All,
>
> Say my parent pom.xml has a pluging to execute some goal on the
> initialization phase. If this pom is the parent of app1 pom.xml and app2
> pom.xml ie
>
> pom.xml
>    - app1
>          pom.xml
>    - app2
>          pom.xml
>
> when the reactor is working, the code in the initialization phase repeats.
> Is there a way to stop this. Only parent pom.xml will do some unit of work,
> but it doesn't need to inherit to its children poms.
>
> Thank you
>
> Saminda
>
> --
> Saminda Abeyruwan
>
> Software Engineer
> WSO2 Inc. - www.wso2.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org