Maven Multiple Module Jacoco Sources

83 views
Skip to first unread message

Massimo Ferrario

unread,
Apr 20, 2015, 12:15:10 PM4/20/15
to jac...@googlegroups.com

Hi all,
I've a maven multiple module project: 2 module, the first contains business logic and is jar packaged and the second is  a web application that contains own sources and also module 1 as dependency

Using Jacoco with Jetty per integration test,  I can't obtain coverage test  for sources of the first modules but only for the web application.

How can configure Jacoco for multiple source directory?

thank in advance,
Massimo

Marc Hoffmann

unread,
Apr 21, 2015, 8:46:53 AM4/21/15
to jac...@googlegroups.com
Hi Massimo,

multi module coverage is not yet supported in the Maven plug-in. As a
workaround you might use out Ant tasks. Here is how we build the multi
module coverage report for JaCoCo itself:


https://github.com/jacoco/jacoco/blob/master/org.jacoco.doc/pom.xml#L75

Regards,
-marc
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/05b3120d-243b-49b2-bccb-a0306e62d757%40googlegroups.com
> [1].
> For more options, visit https://groups.google.com/d/optout [2].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jacoco/05b3120d-243b-49b2-bccb-a0306e62d757%40googlegroups.com?utm_medium=email&utm_source=footer
> [2] https://groups.google.com/d/optout

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages