Hi,
I have a diffeernt use case for jacoco. We are running seleneium automation and recording the coverage through jacoco. The path to jacoc jar file is at the jvm command line during tomcat startup.
We take this exce file and run jacoco command from command line against the source code to generate the report.
mvn org.jacoco:jacoco-maven-plugin:0.8.5:report -Djacoco.dataFile=/location/jacoco.exec
Working good so far and I can see the coverage in respective modules.
I want to get an aggregated coverage report for all the modules. I created a a new module and defined this in pom.xml
<build>
<plugins>
<plugin>
<groupId>@project.groupId@</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Now if I run the following from command line
mvn org.jacoco:jacoco-maven-plugin:0.8.5:report-aggregate -Djacoco.dataFile=/location/jacoco.exec
I would expect to see an aggrgeated report. I think I am running from command line but the definition is in the pom and that is why jacoco fails to detect aggregated module?