Question : I noticed that if i did not set up sonar reports aggregation, Sonar displays coverage information on the whole project and not only module by module. So I wonder if reports aggreation is really needed ?
Generating sonar report i have this issue :
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven plugin:220.127.116.114:sonar (analyze-ocde) on project couverture: Illegal char <
at index 51: ***\ jacoco-aggregate\jacoco.xml
It seems that the XML is not well formed, how to fix that ?
This also allows to create coverage reports when tests are in separate projects than the code under test, for example in case of integration tests.
This is the case in the example you shared – where tests exist both within each module and in a separate module (which tests functionality using both modules).
It’s not quite clear to me where in the execution you’re facing this error (at a glance, I’m suspicious of the whitespace before jacoco-aggregate). Feel free to share more details about your project configuration (pom.xml files, a wider window of logs)