@Mojo(name="instrument", defaultPhase=PROCESS_CLASSES, threadSafe=true) public class InstrumentMojo extends AbstractJacocoMojo
Warning: The preferred way for code coverage analysis with JaCoCo is on-the-fly instrumentation. Offline instrumentation has several drawbacks and should only be used if a specific scenario explicitly requires this mode. Please consult documentation about offline instrumentation before using this mode.
Constructor and Description |
---|
InstrumentMojo() |
Modifier and Type | Method and Description |
---|---|
void |
executeMojo()
Executes Mojo.
|
execute, getExcludes, getIncludes, getProject, skipMojo
public void executeMojo() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
AbstractJacocoMojo
executeMojo
in class AbstractJacocoMojo
org.apache.maven.plugin.MojoExecutionException
- if an unexpected problem occurs. Throwing this exception
causes a "BUILD ERROR" message to be displayed.org.apache.maven.plugin.MojoFailureException
- if an expected problem (such as a compilation failure)
occurs. Throwing this exception causes a "BUILD FAILURE"
message to be displayed.Copyright © 2023. All rights reserved.