Package de.dentrassi.maven.jacoco
Class XmlMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.dentrassi.maven.jacoco.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.AbstractMojoConvert 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 Summary
Constructors Constructor Description XmlMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetDeleteRaw(boolean deleteRaw)voidsetPretty(boolean pretty)voidsetScopes(String[] scopes)voidsetTransientDependencies(boolean transientDependencies)
-
-
-
Constructor Detail
-
XmlMojo
public XmlMojo()
-
-
Method Detail
-
setTransientDependencies
public void setTransientDependencies(boolean transientDependencies)
-
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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-