Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description / Feature

Get This plugin is included in the Java Ecosystem.

It provides code coverage for Java project projects with JaCoCo (an open source and robust Java code coverage tool, developed by the authors of EclEmma). For  For more information, see: Comparison of Emma, Clover, Cobertura and JaCoCo.

JaCoCo SonarQube Java Plugin





  1. Install the JaCoCo plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory from the Java Ecosystem page.
  2. Restart the Sonar server


See Code Coverage by Unit Tests for Java Project tutorial.


  • Some libraries complain on classes, which were instrumented by JaCoCo, so exclusions must be set:
    • Javassist (e.g. when Hibernate used) - "*_javassist_*"
    • Drools - "org.drools.*"
  • The exact number of line hits is not available, because JaCoCo reports only the status of a line (no code, not covered, partly covered, fully covered) - see JaCoCo Coverage Counters.