Class XmlMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(defaultPhase=VERIFY,
          name="xml",
          requiresProject=true,
          inheritByDefault=true,
          requiresDependencyResolution=TEST)
    public class XmlMojo
    extends org.apache.maven.plugin.AbstractMojo
    Convert binary execution data to XML report including dependencies.
    This mojo will convert the binary jacoco execution data into the same format as the XML report. But it will take all module dependencies into consideration. This may be helpful when tools actually require XML data, but tests in a module are responsible for testing classes in other modules.
    • Constructor Detail

    • Method Detail

      • setPretty

        public void setPretty​(boolean pretty)
      • setDeleteRaw

        public void setDeleteRaw​(boolean deleteRaw)
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException