exec-maven-plugin - how to skip execution in a sub-project

2007-09-04 Thread szefo
Hi, My project has a structure similar to this: root +child1 +child2 I use the exec goal in the root project. During the compilation process of both children the exec goal from root project is executed and causes errors - thus I would like to skip it. I would like it to be

Re: exec-maven-plugin - how to skip execution in a sub-project

2007-09-04 Thread Wayne Fay
This should work. In root/pom.xml, in the exec plugin config, set inherited=false. plugin artifactIdmaven-exec-plugin/artifactId inheritedfalse/inherited Alternatively, you could put the exec plugin in a profile, and only use that profile when building from the root ie -Pdoexec. Wayne On

Re: exec-maven-plugin - how to skip execution in a sub-project

2007-09-04 Thread szefo
Inherited=false works! Thanks Wayne Fay wrote: This should work. In root/pom.xml, in the exec plugin config, set inherited=false. plugin artifactIdmaven-exec-plugin/artifactId inheritedfalse/inherited Alternatively, you could put the exec plugin in a profile, and only use that