Hi everyone,
Even after reading Jacoco Aggregate Report I'm still struggling to configure Jacoco with Maven Multimodule configuration and send all data to Sonar (7.7). I'm using Spring Boot with Spring Cloud.
Currently, I have this structure on my application:
Parent
- commons-module
- eureka-module
- module-a
- module-b
- module-c
- module-d
- module-e
- module-f
Under build section, I'm using this configuration (jacoco.version=0.8.4):
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.60</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
And after running mvn jacoco:report-aggregate, I get this result:
| Element | Missed Instructions | Cov. | Missed Branches | Cov. |
| Total | 0 of 0 | n/a | 0 of 0 | n/a |
So what I have done wrong?