Aggregated Coverage or Coverage in the dependent modules not shown in SonarQube + Reports are generated by Jacoco Aggregated Coverage or Coverage in the dependent modules not shown in SonarQube + Reports are generated by Jacoco jenkins jenkins

Aggregated Coverage or Coverage in the dependent modules not shown in SonarQube + Reports are generated by Jacoco


I got the answer from jacoco plugin coverage in multi-module

The following were the mistakes that I did which caused problem form me. In the properties of our pom

 <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>

and in plugin

 <destFile>${sonar.jacoco.reportPath}</destFile>

for me, the above statement flushed the jacoco.exec in different folders because of difference in maven module hierarchy as a result they never agrregated.

The second point is that the dependent module coverage will be only obtained only if it is a compile time dependency to the testing module.