org.jacoco.maven
Class ReportAggregateMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.reporting.AbstractMavenReport
          extended by org.jacoco.maven.AbstractReportMojo
              extended by org.jacoco.maven.ReportAggregateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenMultiPageReport, org.apache.maven.reporting.MavenReport

@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:

Since:
0.7.7

Field Summary
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ReportAggregateMojo()
           
 
Method Summary
 String getName(Locale locale)
           
protected  String getOutputDirectory()
           
 String getOutputName()
           
 void setReportOutputDirectory(File reportOutputDirectory)
           
 
Methods inherited from class org.jacoco.maven.AbstractReportMojo
canGenerateReport, execute, executeReport, getDescription, getProject, getSiteRenderer, isExternalReport
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportAggregateMojo

public ReportAggregateMojo()
Method Detail

getOutputDirectory

protected String getOutputDirectory()
Specified by:
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReport

setReportOutputDirectory

public void setReportOutputDirectory(File reportOutputDirectory)
Specified by:
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReport
Overrides:
setReportOutputDirectory in class org.apache.maven.reporting.AbstractMavenReport

getOutputName

public String getOutputName()

getName

public String getName(Locale locale)


Copyright © 2009–2020 Mountainminds GmbH & Co. KG. All rights reserved.