Sonarscanner report 0 coverage despite of running successful scan

  • Community Edition

  • Version 8.5.1 (build 38104)

    • sonar.java.source=1.8
    • sonar.java.target=1.8
    • sonar.scanner.app=ScannerMaven
    • sonar.scanner.appVersion=3.6.0.1398/3.6.3
    • sonar.sourceEncoding=UTF-8

Scanner properties of module: abcd

  • sonar.binaries=/home/jenkins/workspace/test/Sonar_Test/core/target/classes
  • sonar.coverage.jacoco.xmlReportPaths=/home/jenkins/workspace/test/Sonar_Test/core/…/core/target/site/jacoco-aggregate/jacoco.xml
  • sonar.groovy.binaries=/home/jenkins/workspace/test/Sonar_Test/core/target/classes
  • sonar.java.binaries=/home/jenkins/workspace/test/Sonar_Test/core/target/classes
  • sonar.java.libraries=/home/jenkins/.m2/repository/org/osgi/osgi.core/6.0.0/osgi.core-6.0.0.jar,/home/jenkins/.m2/repository/org/osgi/osgi.cmpn/6.0.0/osgi.cmpn-6.0.0.jar,/home/jenkins/.m2/repository/org/osgi/osgi.annotation/6.0.1/osgi.annotation-6.0.1.jar,/home/jenkins/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar,/home/jenkins/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar,/home/jenkins/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar,/home/jenkins/.m2/repository/javax/jcr/jcr/2.0/jcr-2.0.jar,/home/jenkins/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar,/home/jenkins/.m2/repository/com/adobe/aem/uber-jar/6.5.0/uber-jar-6.5.0-apis.jar,/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.models.api/1.3.6/org.apache.sling.models.api-1.3.6.jar,/home/jenkins/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar,/home/jenkins/.m2/repository/com/adobe/acs/acs-aem-commons-bundle/4.3.0/acs-a…
  • sonar.java.test.binaries=/home/jenkins/workspace/test/Sonar_Test/core/target/test-classes
  • sonar.java.test.libraries=/home/jenkins/workspace/test/Sonar_Test/core/target/classes,/home/jenkins/.m2/repository/org/osgi/osgi.core/6.0.0/osgi.core-6.0.0.jar,/home/jenkins/.m2/repository/org/osgi/osgi.cmpn/6.0.0/osgi.cmpn-6.0.0.jar,/home/jenkins/.m2/repository/org/osgi/osgi.annotation/6.0.1/osgi.annotation-6.0.1.jar,/home/jenkins/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar,/home/jenkins/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar,/home/jenkins/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar,/home/jenkins/.m2/repository/javax/jcr/jcr/2.0/jcr-2.0.jar,/home/jenkins/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar,/home/jenkins/.m2/repository/com/adobe/aem/uber-jar/6.5.0/uber-jar-6.5.0-apis.jar,/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.models.api/1.3.6/org.apache.sling.models.api-1.3.6.jar,/home/jenkins/.m2/repository/org/junit/jupiter/junit-jupiter/5.4.1/junit-jupiter-5…
  • sonar.junit.reportPaths=/home/jenkins/workspace/test/Sonar_Test/core/target/surefire-reports
  • sonar.junit.reportsPath=/home/jenkins/workspace/test/Sonar_Test/core/target/surefire-reports
  • sonar.libraries=/home/jenkins/.m2/repository/org/osgi/osgi.core/6.0.0/osgi.core-6.0.0.jar,/home/jenkins/.m2/repository/org/osgi/osgi.cmpn/6.0.0/osgi.cmpn-6.0.0.jar,/home/jenkins/.m2/repository/org/osgi/osgi.annotation/6.0.1/osgi.annotation-6.0.1.jar,/home/jenkins/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar,/home/jenkins/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar,/home/jenkins/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar,/home/jenkins/.m2/repository/javax/jcr/jcr/2.0/jcr-2.0.jar,/home/jenkins/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar,/home/jenkins/.m2/repository/com/adobe/aem/uber-jar/6.5.0/uber-jar-6.5.0-apis.jar,/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.models.api/1.3.6/org.apache.sling.models.api-1.3.6.jar,/home/jenkins/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar,/home/jenkins/.m2/repository/com/adobe/acs/acs-aem-commons-bundle/4.3.0/acs-a…
  • sonar.moduleKey=com.abbott.adc.workshop:adc-workshop.core
  • sonar.projectBaseDir=/home/jenkins/workspace/test/Sonar_Test/core
  • sonar.projectBuildDir=/home/jenkins/workspace/test/Sonar_Test/core/target
  • sonar.projectDescription=Core bundle for test
  • sonar.projectKey=abcd
  • sonar.projectName=test - Core
  • sonar.sources=/home/jenkins/workspace/test/Sonar_Test/core/pom.xml,/home/jenkins/workspace/test/Sonar_Test/core/src
  • sonar.tests=/home/jenkins/workspace/test/Sonar_Test/core/src
  • sonar.working.directory=/home/jenkins/workspace/test/Sonar_Test/core/target/sonar

[INFO] Java Test Files AST scan (done) | time=18030ms
[INFO] 68/68 source files have been analyzed
[INFO] Java Generated Files AST scan
[INFO] 0 source files to be analyzed
[INFO] Java Generated Files AST scan (done) | time=1ms
[INFO] 0/0 source files have been analyzed
[INFO] Sensor JavaSquidSensor [java] (done) | time=84475ms
[INFO] Sensor CSS Rules [cssfamily]
[INFO] No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[INFO] Sensor CSS Rules [cssfamily] (done) | time=1ms
[INFO] Sensor JaCoCo XML Report Importer [jacoco]
[INFO] Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
[INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=51ms

Hi @Hawk,

Welcome to SonarSource community! :wave:

Please take a look at our community guide and see if this helps:

Joe