I have written a Mojo that has 'aggregator true by default:
@Mojo(name = "blahblah", defaultPhase = LifecyclePhase.INITIALIZE,
aggregator = true)
When i include this plugin into a pom however, say,
<plugin>
<groupId>mygroup</groupId>
<artifactId>myplugin-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>mygoal</goal>
</goals>
</execution>
</executions>
</plugin>
it will run the mojo for every subproject, contrary to the default, which
should be non-recursive.
Why would that be the default if i specified the mojo not to?
Is there a way to set the plugin to run non-recursively by specifying
something in the <configuration> section of the plugin?
I would expect something like this, but does not work:
<plugin>
<groupId>mygroup</groupId>
<artifactId>myplugin-maven-plugin</artifactId>
* <configuration>*
* <aggregator>true</aggregator>*
* </configuration>*
<executions>
<execution>
<goals>
<goal>mygoal</goal>
</goals>
</execution>
</executions>
</plugin>
--
Max