Class ReportMojo

  • 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",
          defaultPhase=VERIFY,
          threadSafe=true)
    public class ReportMojo
    extends AbstractReportMojo
    Creates a code coverage report for tests of a single project in multiple formats (HTML, XML, and CSV).
    Since:
    0.5.3
    • Field Detail

      • outputDirectory

        @Parameter(defaultValue="${project.reporting.outputDirectory}/jacoco")
        private java.io.File outputDirectory
        Output directory for the reports. Note that this parameter is only relevant if the goal is run from the command line or from the default build lifecycle. If the goal is run indirectly as part of a site generation, the output directory configured in the Maven Site Plugin is used instead.
      • dataFile

        @Parameter(property="jacoco.dataFile",
                   defaultValue="${project.build.directory}/jacoco.exec")
        private java.io.File dataFile
        File with execution data.
    • Constructor Detail

      • ReportMojo

        public ReportMojo()