Plugin's properties

Property Default Optional? Description
maven.cobertura.dir ${maven.build.dir}/cobertura Yes Specifies the root directory for cobertura output files.
maven.cobertura.instrumentation ${maven.cobertura.dir}/classes Yes Specifies the build directory for the instrumented classes.
maven.cobertura.instrumentation.maxmemory 64m Yes Specifies the JVM max memory amount for the instrumentation task.
maven.cobertura.instrumentation.includes **/*.class Yes Specifies the pattern for the included classes of instrumentation.
maven.cobertura.instrumentation.excludes Not defined Yes Specifies the pattern for the excluded classes of instrumentation. It's a comma separated property.
maven.cobertura.report.maxmemory 64m Yes Specifies the JVM max memory amount for the report task.
maven.cobertura.ignoreregex Not defined Yes Tell Cobertura to ignore certain classes using a regular expression. eg. to ignore all calls to commons-logging you can use org.apache.commons.logging.*.
maven.cobertura.junit.fork yes Yes Specifies the fork attribute for the JUnit test for the coverage analysis.
maven.cobertura.datafile ${maven.cobertura.dir}/cobertura.ser Yes Specify the name of the file to use for storing the metadata about your classes.
maven.cobertura.force false Yes Force cobertura to be invoked even if no JUnit test classes exist. This will allow one to get the metric of the total number of executable lines in the code even if unit tests do not exist.

Coverage check related properties

Property Default Optional? Description
maven.cobertura.check.report false Yes Whether or not the cobertura check report is generated. Disabled by default because seems that it doesn't work on maven 1.0.x (works in 1.1 beta 1 and beta 2)
maven.cobertura.check.linerate 50 Yes Specify the minimum acceptable line coverage rate needed by each class. This should be an integer value between 0 and 100.
maven.cobertura.check.branchrate 50 Yes Specify the minimum acceptable branch coverage rate needed by each class. This should be an integer value between 0 and 100.
maven.cobertura.check.totallinerate 50 Yes Specify the minimum acceptable average line coverage rate needed by the project as a whole. This should be an integer value between 0 and 100.
maven.cobertura.check.totalbranchrate 50 Yes Specify the minimum acceptable average branch coverage rate needed by the project as a whole. This should be an integer value between 0 and 100.
maven.cobertura.check.packagelinerate 50 Yes Specify the minimum acceptable average line coverage rate needed by each package. This should be an integer value between 0 and 100.
maven.cobertura.check.packagebranchrate 50 Yes Specify the minimum acceptable average branch coverage rate needed by each package. This should be an integer value between 0 and 100.