[MNG-2184] Possible problem with @aggregator and forked lifecycles
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Vincent Massol](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vmassol)** opened **[MNG-2184](https://issues.apache.org/jira/browse/MNG-2184?redirect=false)** and commented
In the Clover plugin the report mojo is an aggregator (http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java). It also spawns a forked lifecycle:
```
* @execute phase="test" lifecycle="clover"
* @aggregator
```
When I run this clover report on the Cargo API module, which contains children modules, all the modules are executed several times as shown in the attached logs. They should be executed only once. The `@aggregator` is supposed to execute only once and it executes several times.
---
**Affects:** 2.0.3
**Attachments:**
- [cargo.log](https://issues.apache.org/jira/secure/attachment/12711681/cargo.log) (_58.89 kB_)
**Issue Links:**
- [MNG-7991](https://issues.apache.org/jira/browse/MNG-7991) refactor "aggregator" goal feature
(_**"Is contained by"**_)
- [SUREFIRE-449](https://issues.apache.org/jira/browse/SUREFIRE-449) In multi-module projects, all tests are run for each module in the module tree
- [MJAVADOC-137](https://issues.apache.org/jira/browse/MJAVADOC-137) javadoc:javadoc always runs as "aggregator"
- [SUREFIRE-905](https://issues.apache.org/jira/browse/SUREFIRE-905) Surefire report plugin only executed tests once. Junit Categorization is not possible
- [MNG-5170](https://issues.apache.org/jira/browse/MNG-5170) prevent mojo to fork lifecycle when same lifecycle is already executed
- [MJAVADOC-171](https://issues.apache.org/jira/browse/MJAVADOC-171) Modules in multi-module projects are "built" too often
- [MSITE-454](https://issues.apache.org/jira/browse/MSITE-454) Don't use aggregator mojos for default report set
20 votes, 20 watchers
Contributor guide
Assessment
This issue has not been assessed yet.