Jacoco xml report generated and imported but not displayed in SonarCloud

Hi All,

We have around 26 projects, mostly Java based, analysed by SonarCloud; all are using the same configuration.


  • spring boot

  • java 11

  • maven

  • jacoco plugin

  • gitlab pipeline


One of this project, after the upgrade to the new SonarCloud UI, got the code coverage showing 0%.

Screenshot 2021-10-29 at 18.59.10

Jacoco report

The jacoco.xml is generated during pipeline and mentioned as imported.

[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=28ms

I had to change extension to txt to get it uploaded.
jacoco.txt (93.2 KB)

I have no clue on why this project is the only one that does not show a code coverage, I have made lines changes to classes but they are not shown in the New Lines menu. Only lines changed on the pom.xml are shown, this is weird.

Hope someone can point me to the right direction.

Thanks in advance

SonarCloud managed to read the analysis after playing around with sonar.exclusion.

Adding and removing code made the SonarCloud to work :confused:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.