Aggregate report in a Tycho build with a pom-first module

96 views
Skip to first unread message

Zlika

unread,
Jun 7, 2017, 10:55:01 AM6/7/17
to JaCoCo and EclEmma Users
Hi,

I have a tycho build with a pom-first module and other regular manifest-first modules. As explained in https://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts , I have to first compile pom-first modules and then manifest-first modules.

My problem is that when I try to produce the aggregated report (using the report-aggregate goal), it completely ignores my pom-first module (even if it is in the <dependencies> section of the pom file that runs the report-aggregate goal).
I think this is because the pom-first module has been built in a previous phase and then is not part of the build reactor of the other maven modules.

How can I do to fix that?

Thank you.

Evgeny Mandrikov

unread,
Jun 8, 2017, 3:19:35 PM6/8/17
to JaCoCo and EclEmma Users, thomas.lo...@gmail.com
Hi,

Yes - report-aggregate relies on reactor ( http://www.jacoco.org/jacoco/trunk/doc/report-aggregate-mojo.html ). For a usual usage scenario of tycho-maven-plugin this works well - for example see https://github.com/Godin/eclipse-eclemma/tree/jacoco-maven-plugin-report-aggregate For more complex scenarios please use maven-antrun-plugin with JaCoCo Ant Tasks ( http://www.jacoco.org/jacoco/trunk/doc/ant.html ) to gain more fine-grained control over process of generation of report.

Zlika

unread,
Jun 9, 2017, 3:47:11 AM6/9/17
to JaCoCo and EclEmma Users, thomas.lo...@gmail.com
Thank you for your answer.
Where can I find an example of using maven-antrun-plugin together with Jacoco (in particular, how to make maven-antrun-plugin aware of the Jacoco ant tasks)?
Thank you.

Evgeny Mandrikov

unread,
Jun 9, 2017, 5:06:35 AM6/9/17
to JaCoCo and EclEmma Users, thomas.lo...@gmail.com
Please refer to the maven-antrun-plugin documentation - http://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks.html
As an example, we've been doing this in build of JaCoCo itself prior to introduction of aggregate-report - see https://github.com/jacoco/jacoco/blob/v0.7.0/org.jacoco.doc/pom.xml#L75-L198

Zlika

unread,
Jun 9, 2017, 10:51:51 AM6/9/17
to JaCoCo and EclEmma Users, thomas.lo...@gmail.com
Thank you very much for your help!
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages