Coverage is always showing 0.0%

Hi,
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:3.7.0.1746:sonar -Dsonar.core.codeCoveragePlugin=clover -Dsonar.projectDescription=sonar_analysis -Dsonar.host.url=http://localhost:9000 -Dsonar.login=*** -Dsonar.ws.timeout=240 -Djava.awt.headless=true -Dmpp_build_number=20.0.0.248 -Dmaven.test.failure.ignore=true -Dsonar.global.exclusions=/*.xml,/*.XML,/target/ -Dsonar.branch.name=master -Dsonar.java.coveragePlugin=clover

Im pom.xml file i have the properties

<sonar.exclusions>noNamespace/.java,noNamespace/impl/.java,com//ssh_net_conf/*.java,com//ssh_net_conf/parser/.java,ssh_net_conf/parser/SSHParserConstants.java</sonar.exclusions>
<maven.clover.excludesList>**/
.xml,/*.XML,/target/**</maven.clover.excludesList>
<sonar.pitest.mode>skip</sonar.pitest.mode>
<sonar.skippedModules>installation,Robot</sonar.skippedModules>

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.