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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> Tikal <http://www.tikalk.com> Tikal Project <http://tikal.sourceforge.net> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]