cobertura:instrument

Full name:

org.codehaus.mojo:cobertura-maven-plugin:2.6: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 out 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.

Optional Parameters

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

Parameter Details

attach:

Specifies whether or not to attach the cobertura artifact to the project
  • Type: boolean
  • Required: No
  • Expression: ${cobertura.attach}
  • Default: false

classifier:

Specifies the classifier to use for the attached ser artifact
  • Type: java.lang.String
  • Required: No
  • Expression: ${cobertura.classifier}
  • Default: cobertura

forceMojoExecution:

Usually most of out 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
  • Expression: ${cobertura.force}
  • Default: false

instrumentation:

  • Type: org.codehaus.mojo.cobertura.configuration.ConfigInstrumentation
  • Required: No
  • Expression: ${instrumentation}

maxmem:

Maximum memory to pass JVM as -Xmx of Cobertura processes.
  • Type: java.lang.String
  • Required: No
  • Expression: ${cobertura.maxmem}
  • Default: 64m

quiet:

Only output coberura errors, avoid info messages.
  • Type: boolean
  • Required: No
  • Expression: ${quiet}
  • Default: false

skip:

When true, skip the execution.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • Expression: ${cobertura.skip}
  • Default: false