Konrad Windszus created SUREFIRE-2100:
-----------------------------------------
Summary: Improve behaviour for surefire-report goal with aggregate
parameter
Key: SUREFIRE-2100
URL: https://issues.apache.org/jira/browse/SUREFIRE-2100
Project: Maven Surefire
Issue Type: Improvement
Components: Maven Surefire Report Plugin
Affects Versions: 3.0.0-M7
Reporter: Konrad Windszus
The {{aggregate}} parameter affects the default reportDirectories:
https://github.com/apache/maven-surefire/blob/6f0fb404f89728fb65f37c9db7711fff6af55d5d/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/AbstractSurefireReportMojo.java#L201-L207.
This default behaviour only makes sense though for a Maven project containing
multiple modules. For a single Maven project this default behaviour leads to
the fact that always an empty report is being generated as the root project is
always(!) skipped.
Although one could argue that {{aggregate}} should only ever be set for
multimodule projects, one can easily fix the logic here to also work for a
singlemodule project.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)