The JaCoCo Maven plug-in can be used to report on Unit Test coverage in an IDE (e.g. NetBeans) and also for Sonar.

POM file

To analyse your Maven project using JaCoCo, place the following in the build face of the projects top-level POM along with the Jacoco properties for use with Sonar.



This can now be picked up by running 'code coverage' in the Netbeans IDE or by using Jenkins & Sonar for static build analysis