@Mojo(name="report-aggregate",
threadSafe=true)
public class ReportAggregateMojo
extends AbstractReportMojo
Creates a structured code coverage report (HTML, XML, and CSV) from multiple projects within reactor. The report is created from all modules this project depends on. From those projects class and source files as well as JaCoCo execution data files will be collected. In addition execution data is collected from the project itself. This also allows to create coverage reports when tests are in separate projects than the code under test, for example in case of integration tests.
Using the dependency scope allows to distinguish projects which contribute execution data but should not become part of the report:
compile: Project source and execution data is included in
the report.test: Only execution data is considered for the report.| Constructor and Description |
|---|
ReportAggregateMojo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName(Locale locale) |
protected String |
getOutputDirectory() |
String |
getOutputName() |
void |
setReportOutputDirectory(File reportOutputDirectory) |
canGenerateReport, execute, executeReport, getDescription, getProject, getSiteRenderer, isExternalReportcloseReport, generate, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactoryprotected String getOutputDirectory()
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportpublic void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportsetReportOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportpublic String getOutputName()
Copyright © 2024. All rights reserved.