I'm trying to create a report-aggregate for my multi-module project, the only problem is that if use the goal report-aggregate I lose all the percentage. As shown in the image, during the same execution I get some coverage if I open the single module report, but there is no coverage if I open the aggregate report. I am using the report module, so I have this in /tests/pom.xml:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${jacoco.ut.execution.data.file}</destFile>
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
</executions>
</plugin>
And this is /tests/report/pom.xml, before the plugin there are all the dependencies to the modules:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
I've also tried with merge and with report after merge, but I always get the same cumulative report with all the modules but no coverage.
Does anyone know what's wrong?