Hi Anders,
Anders Hammar wrote: > > I didn't say it would. :-)No you didn't ;-) Anders Hammar wrote: > > There has been several similar questions like this on this list before. > There is no generic way to exclude a bound plugin in a single sub-project. > Either all sub-projects inherit the plugin binding or none. > Some plugins provide a configuration option to skip execution (look at > surefire which has a skipTests option) however. Technically, this still > executes the bound plugin but the plugin doesn't do anything (all > dependeing > on the plugin's logic for that option). As an end user the difference > shouldn't really matter, but technically there is a bug difference. > Also, there is an option to say that a plugin binding shouldn't be > inherited > by any sub-project. You do that by declaring: > <inherited>false</inherited> > You can find examples of that here: > http://maven.apache.org/guides/introduction/introduction-to-the-pom.html > > In your case, I would look at this option for the exec plugin: > http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html#skip > The tip with the skip did the trick.... Now my derived project looks like the following: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <executions> <execution> <id>initialize</id> <phase>initialize</phase> <goals> <goal>exec</goal> </goals> <configuration> <skip>true</skip> </configuration> </execution> <execution> <id>compile</id> <phase>compile</phase> <goals> <goal>exec</goal> </goals> <configuration> <skip>true</skip> </configuration> </execution> </executions> </plugin> May be it's not the best solution but it works... Many thanks for your help. Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Maven-Exec---Inheritance---Multi-Module-Build-tp26779913p26791229.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org