Sonarqube is not able to load jacoco coverage report

Sonarqube is not able to pick the report generated by jacoco.

profile using;





[INFO] Sensor JaCoCo XML Report Importer [jacoco]
 [WARNING] No coverage report can be found 
Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
[] [INFO] No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[] [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=30ms


Welcome to the community!

Did you generate the report before analysis?


Hi Ann,
Thanks for your response.
I am not really sure about it. I defined all dependencies in pom.xml.
How can I check?


Hi Naren,

It’s not a question of just defining the dependencies. You need to research how to use the coverage tool you’ve chosen.


After test cases are executed, I am generating the report after that importing report to sonarqube.


Backing up to your OP:

Analysis isn’t finding your coverage report. The options are:

  • you didn’t tell it where to look
  • you told it where to look, but the file doesn’t exist
  • the file exists, but not where analysis is looking for it

Reviewing your properties, you are providing <sonar.coverage.jacoco.xmlReportPaths>, so the path you’re providing is suspect.

Beyond that, I’ve just scrolled right in your properties block and noticed this:

The .exec format hasn’t been supported for quite a while. An XML report is expected.

Going a little further, it looks like you’re trying to specify what’s actually the default path.

My suggestion: take a look at how to generate an XML JaCoCo report, and try commenting out the JaCoCo report property so analysis can just naturally find it at the default location.