Hi Michel,
The whole idea of the aggregator project is that it builds *after* the
modules.
Yep, that would be nice. Unfortunatelly this is not how Maven works.
There are different known workarounds like you proposed to run thne
build with two Maven invocations:
mvn install
mvn site
Unfortunatelly these workarounds all come with drawbackes. We wanted to
build JaCoCo itself in one run, therefore we decided against this
solution.
Please find a detailed discussion of the design options here:
https://github.com/jacoco/jacoco/wiki/MavenMultiModule
Regards,
-marc
On 2016-07-13 08:28, [email protected] wrote:
On Tuesday, July 12, 2016 at 4:55:35 PM UTC+2, Marc R. Hoffmann wrote:
the aggregator project does not work as a container for the coverage
report, unfortunatelly it is build *before* its modules. Therefore the
report is empty. You need a separate project which the projects under
test do not depend on:
The whole idea of the aggregator project is that it builds *after* the
modules. This is also how it seems to work: The build starts with the
parent pom, then module a and b get built, and lastly the aggregator
pom is built. So I'm not sure that your idea will solve the issue.
Also, before I separated the aggregator and parent pom, I tried moving
all the site stuff in a separate module (something akin to the report
module in your example), that didn't work. The (huge) downside to this
approach is also that I have to specify the dependencies twice. So,
again, why can't it work from the aggregator module? Other aggregate
reports work fine, and the execution order is fine as well. Especially
since I usually do a mvn install first, and only then I do a mvn site.
This means that even if the order is wrong, execution data is
available when I run mvn site!
Regards,
Michel.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/60ce439a6b57cba2de23c52793aad581%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.