I\'m using JaCoCo for Code Coverage. The Unit Test reports are created with junit and they are imported correctly, so that the unit test information is shown properly. The <
In my case below commands works.
mvn clean org.jacoco:jacoco-maven-plugin:0.7.3.201502191951:prepare-agent install
mvn sonar:sonar
To check code coverage: Start SonarQube server -> Run above two commands one after another & you will see code coverage in SonarQube Client.
FYI: My SonarQube Version - 5.1.2. You can download latest version from SonarQube Download