Unable to get code coverage report on sonarqube for custom path

Hi Team,

I am working on a multi-module maven module project and code coverage report generated by jacaco aggregate (path -->**/target/site/jacoco-aggregate/jacoco.xml.). unable to load this file while running the sonarqube maven command with custom path.

Please find the below custom path command.
mvn sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=\target\site\jacoco-aggregate\jacoco.xml**

Could you please help me on this.

it’s resolved, after running the below command for custom path with multiple jacoco xml files.
mvn sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=$(system.defaultworkingdirectory).…\target\site\jacoco\jacoco.xml,$(system.defaultworkingdirectory).…\target\site\jacoco-aggregate\jacoco.xml

Thank you.

1 Like

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