I have two multi-module projects. In the first project, I have an EAR project which in turn packages two EJB projects. The EJB projects house few unit and integration tests. The jacoco maven plugin works here fine to generate the aggregated report of the test coverage of EJB code.
The second project contains no business code but supposed to contain only integration tests. I would like to have the coverage report generated by running these integration tests. I understand the report-aggregate goal picks the artifacts (sources and classes) only from the dependencies in the reactor. As the EJB projects are outside the reactor but still are dependencies of this project, Is there a way to pick artifacts from them?
The complete source code is here
https://github.com/sarathkumarpk/jacocoexample
Does anyone have an idea?