Finding reporting artifacts from dependencies

26 views
Skip to first unread message

SARATH KUMAR P.K

unread,
Mar 14, 2018, 7:50:50 AM3/14/18
to JaCoCo and EclEmma Users
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?

Evgeny Mandrikov

unread,
Mar 19, 2018, 6:46:36 PM3/19/18
to JaCoCo and EclEmma Users
report-aggregate of jacoco-maven-plugin works only for projects within same reactor.
For the more complex scenarios please use
or Ant Tasks ( http://www.jacoco.org/jacoco/trunk/doc/ant.html ), the last one can be easily integrated into Maven using maven-antrun-plugin ( http://maven.apache.org/plugins/maven-antrun-plugin/ ).
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages