You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ittay Dror <it...@tikalk.com> on 2008/04/08 20:30:41 UTC

how to execute a plugin only once in multi-project parent pom

Hi,

I have a pom that acts both as parent and as multi-module. In it, I have 
a plugin execution. What I want is for the plugin to execute once when 
invoking maven on the parent pom (so it does not run for every module), 
and also have it executed when invoking maven on some child module 
(where only that module is executed)

Thank you,
Ittay

-- 
Ittay Dror <it...@tikalk.com>
Tikal <http://www.tikalk.com>
Tikal Project <http://tikal.sourceforge.net>


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


Re: how to execute a plugin only once in multi-project parent pom

Posted by Ittay Dror <it...@tikalk.com>.
ok, created case http://jira.codehaus.org/browse/MNG-3508

Brian E. Fox wrote:
> You can set inherited=false in the parent so it won't go down to all the
> children. There is no way to currently tell a plugin to execute only
> once in a given build no matter where the build is executed. I tried to
> do this with the enforcer and ended up having to put caching logic into
> the plugin itself to deal with this.
>
> -----Original Message-----
> From: Ittay Dror [mailto:ittayd@tikalk.com] 
> Sent: Tuesday, April 08, 2008 2:31 PM
> To: Maven Users List
> Subject: how to execute a plugin only once in multi-project parent pom
>
> Hi,
>
> I have a pom that acts both as parent and as multi-module. In it, I have
>
> a plugin execution. What I want is for the plugin to execute once when 
> invoking maven on the parent pom (so it does not run for every module), 
> and also have it executed when invoking maven on some child module 
> (where only that module is executed)
>
> Thank you,
> Ittay
>
>   

-- 
Ittay Dror <it...@tikalk.com>
Tikal <http://www.tikalk.com>
Tikal Project <http://tikal.sourceforge.net>


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


RE: how to execute a plugin only once in multi-project parent pom

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
You can set inherited=false in the parent so it won't go down to all the
children. There is no way to currently tell a plugin to execute only
once in a given build no matter where the build is executed. I tried to
do this with the enforcer and ended up having to put caching logic into
the plugin itself to deal with this.

-----Original Message-----
From: Ittay Dror [mailto:ittayd@tikalk.com] 
Sent: Tuesday, April 08, 2008 2:31 PM
To: Maven Users List
Subject: how to execute a plugin only once in multi-project parent pom

Hi,

I have a pom that acts both as parent and as multi-module. In it, I have

a plugin execution. What I want is for the plugin to execute once when 
invoking maven on the parent pom (so it does not run for every module), 
and also have it executed when invoking maven on some child module 
(where only that module is executed)

Thank you,
Ittay

-- 
Ittay Dror <it...@tikalk.com>
Tikal <http://www.tikalk.com>
Tikal Project <http://tikal.sourceforge.net>


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


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