Hey @hylkevds, you caught my attention with your comment that this also happens in the example project. I found why: the correct property to use when passing an aggregate coverage jacoco file is sonar.coverage.jacoco.aggregateXmlReportPaths, and not sonar.coverage.jacoco.xmlReportPaths. This is reflected in the docs that Ann graciously linked:
<properties>
<sonar.coverage.jacoco.aggregateXmlReportPaths>
${maven.multiModuleProjectDirectory}/report-aggregate/target/site/
jacoco-aggregate/jacoco.xml
</sonar.coverage.jacoco.aggregateXmlReportPaths>
</properties>
However, the example project uses sonar.coverage.jacoco.xmlReportPaths, both in the pom.xml and in the instructions in the readme. I tried running the example with the correct one and the warnings are gone (and coverage is still reported correctly), so it’s a simple fix. I have a PR to fix it.
Could you give this a try?