cobertura:instrument

Full name:

org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument

Description:

Instrument the compiled classes.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.

Required Parameters

Name Type Since Description
forceMojoExecution boolean 2.5 Usually most of our Cobertura mojos will not get executed on parent poms. Setting this parameter to true will force the execution of this mojo, even if it would usually get skipped in this case.
Default value is: false.
User property is: cobertura.force.

Optional Parameters

Name Type Since Description
attach boolean - Specifies whether or not to attach the Cobertura artifact to the project.
Default value is: false.
User property is: cobertura.attach.
classifier String - Specifies the classifier to use for the attached ser artifact.
Default value is: cobertura.
User property is: cobertura.classifier.
instrumentation ConfigInstrumentation - The Instrumentation Configuration.
User property is: instrumentation.
maxmem String - Maximum memory to pass to the JVM for Cobertura processes.
Default value is: 64m.
User property is: cobertura.maxmem.
quiet boolean - Only output Cobertura errors, avoid info messages.
Default value is: false.
User property is: quiet.
skip boolean 2.5 When true, skip the execution.
Default value is: false.
User property is: cobertura.skip.

Parameter Details

attach:

Specifies whether or not to attach the Cobertura artifact to the project.
  • Type: boolean
  • Required: No
  • User Property: cobertura.attach
  • Default: false

classifier:

Specifies the classifier to use for the attached ser artifact.
  • Type: java.lang.String
  • Required: No
  • User Property: cobertura.classifier
  • Default: cobertura

forceMojoExecution:

Usually most of our Cobertura mojos will not get executed on parent poms. Setting this parameter to true will force the execution of this mojo, even if it would usually get skipped in this case.
  • Type: boolean
  • Since: 2.5
  • Required: Yes
  • User Property: cobertura.force
  • Default: false

instrumentation:

  • Type: org.codehaus.mojo.cobertura.configuration.ConfigInstrumentation
  • Required: No
  • User Property: instrumentation

maxmem:

Maximum memory to pass to the JVM for Cobertura processes.
  • Type: java.lang.String
  • Required: No
  • User Property: cobertura.maxmem
  • Default: 64m

quiet:

Only output Cobertura errors, avoid info messages.
  • Type: boolean
  • Required: No
  • User Property: quiet
  • Default: false

skip:

When true, skip the execution.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: cobertura.skip
  • Default: false