How to configure jacoco codecoverage to a multi module maven project

Hi Team,
I’m facing issues in configuring jacoco code coverage for a multi module with 12 modules maven project
Using sonarqube LTs 7.9 version with jacoco xml 1.1.0 plugin in sonarqube and
pom.xml plugins
maven plugin 2.5.0
sonar maven plugin 3.7.0
jacoco maven plugin 0.8.6


prepare-agent ${sonar.jacoco.reportPaths} surefireArgLine merge-results merge ${sonar.jacoco.reportPaths} ${}/jacoco *.exec test report ${sonar.jacoco.reportPaths} ${project.reporting.outputDirectory}/jacoco-ut report-aggregate verify coverage-check check PACKAGE LINE COVEREDRATIO 80% maven-surefire-plugin 2.22.1 ${surefireArgLine} UTF-8 http://ip:9000/

pls suggest any changes as I’m getting 0 code coverage though I have configured unit tests

Thanks in advance

Hello @Anuradha_Varganti ,

Welcome to the SonarSource Community. :wave: . I hope you’ll enjoy it

There’s plenty of tutorials on this forum about Jacoco coverage import for Maven multimodules projects. Did you check them ?

and more…