There is something strange going on with my jacoco configuration and I am not able to figure it out. I have visited multiple threads on stack overflow and other platforms and tried many thing, but didn't resolve this issue.
I have setup the java code coverage for multiple modules. This is my project structure
ABC
- module1
DEF
- module1
- module2
- module3
pom.xml
I have configured the jacoco for my DEF maven project. I am only configuring my DEF project. And this is what pom.xml contains
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/target/reports</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Issue: The issue here is, it's generating the code coverage report in each module1, module2 and module3. But the report generated in module1, doesn't contains the code coverage for itself. Meaning, it shows the code coverage for module2 and module3, but it doesn't include module1 report in itself. I don't know what's wrong ?
EDIT : modules in DEF are maven modules and it didn't contains anything related to jacoco.
Any idea or any suggestions ?
Thanks