Coverage is always showing 0.0%

I am using sonarqube server version 6.7.7 … i am trying to find the code coverage using mvn for one of our repository … It always show as

FYI , i am running the mvn build as below

mvn -B -s settings.xml -Dmaven.repo.local=./local-repository org.sonarsource.scanner.maven:sonar-maven-plugin: -Dsonar.core.codeCoveragePlugin=clover -Dsonar.projectDescription=sonar_analysis -Dsonar.login=*** -Djava.awt.headless=true -Dmpp_build_number= -Dmaven.test.failure.ignore=true*.xml,/*.XML,/target/

Im pom.xml file i have the properties


Can someone help me on this …

I am having this same problem too – Sonar Community Edition v 7.6

For every single project on the SONAR DASHBOARD the Code Coverage is 0%.

I am still researching… Will likely post a question here as well. Looks like you need a separate tool like JaCoCo. Unsure.

Good luck.

In Clover report,i can see code coverage is reported …But only in sonar it is showing 0.0% …

I got code coverage working.

Had to look at SONAR STAFF GUIDES (links through this community) and then read the JACOCO website. Got it working. Still learning… Good luck to you.