Versions
- SonarQube Cloud
- maven
- Jenkins
- sonar-maven-plugin 5.5.0.6356
- jacoco-maven-plugin 0.8.14
We follow the multi-module setup from your official guide: a coverage-report module runs report-aggregate, and all modules point sonar.coverage.jacoco.xmlReportPaths to that single aggregated report. The guide explicitly says:
the JaCoCo plugin imports coverage reports module by module, so we need to import the same report multiple times (once for every module)
This works, coverage is imported correctly.
Problem
Commit de0190fc481e (JACOCO-97) added a WARN log every time the importer encounters a file from the aggregated report that doesn’t belong to the current module:
[WARNING] File 'MyClass.java' not found in project sources
On our 60-module / 6000 source files project, this produces 300 000 warnings per
build. But this WARNING is in direct conflict with the recommanded configuration of multi module projects.
Could the warning be hidden behind some sort of flag, or downgraded to a debug log ? Or could you point us to a more up to date method to configure the coverage for our multi module maven project