Hi,
If a plugin is defined in the normal build section of a pom and has
defined a specific execution, is it possible to override this
execution by defining the same plugin in a profile?
The plugin I am working on, uses a forked build lifecycle, so when I
try to do this, I see the executions defined outside the profile being
run, as well as those defined in the profile. Ideally, I'd like the
executions defined for the plugin outside the profile completely
ignored when the profile is activated.
e.g.
<build>
<plugins>
<plugin>
<artifactId>plugin</artifactId>
<executions>
<execution>
<id>execution1</id>
<phase>verify</phase>
<goals>
<goal>goal1</goal>
<goal>goal2r</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
and then inside a profile:
<profiles>
<profile>
<build>
<plugins>
<plugin>
<artifactId>plugin</artifactId>
<executions>
<execution>
<id>execution1</id>
<phase>verify</phase>
<goals>
<!-- no goals -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Cheers,
Nick Pellow
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]