I've a parent pom containing a maven ant task that needs to be executed by all the children :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>set-scripts-rights</id>
<phase>initialize</phase>
<configuration>
<tasks>
<!-- The tasks that needs to be exacuted-->
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
In one of the children, i don't want the script to be executed then i've added this to the build / plugins section :
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
But despite of this section, the task is always executed. Any idea how i could effectively trash this task in this child ?