On 04/12/2008, at 12:29 PM, Nick Pellow wrote:

Hi,

I noticed that the 'aggregator' parameter for a MOJO is slated for deprecation in a future release of Maven.
http://books.sonatype.com/maven-book/reference/writing-plugins.html#d0e22494

Seems presumptive on the part of the author. It has both its usefulness and its problems, and it being superceded is likely to be part of a greater revision of the lifecycle rather than a one-off deprecation.

What should be used instead, to fulfill the following use-case:

- a multi-module project, which would like to assert something about the entire project at the very end of the build.

A concrete example is mentioned on our Clover Forums at http://forums.atlassian.com/post!reply.jspa?messageID=257294857 . The user would like to only run clover2:check on the entire project, not on each sub-module.


@aggregator will work for your situation

The only other solution available today is to run the plugin from a separate module that depends on all the others (this is typically how dependency-based aggregation is really done in Maven).

Cheers,
Brett

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to