Hello!

Let's assume I have three Maven artifacts: One aggregating parent artifact and two children modules.

I'd like to generate an aggregating report both for jacoco and pmd, each comprising both children modules. I'd like those two aggregatings reports to be located in the same Maven artifact. Is this possible?

[1] says regarding "jacoco:report-aggregate": "Creates a structured code coverage report [...] from multiple projects within reactor. The report is created from all modules this project depends on [...]." [2] says regarding "pmd:aggregate-pmd": "Creates a PMD site report in an aggregator project [...]".

This doesn't work well together, does it? An aggregating PMD report has to be in an aggregator project, but jacoco would need the aggregator project to depend on the two children, which doesn't work.

In fact, I managed to create an aggregating report for jacoco by introducing another child-report module which depends on the other two children modules, and I managed to create an aggregating report for PMD inside the aggregating parent artifact, but I couldn't make both reports to be in the same artifact.

I'd like to make sure that I'm not maybe missing something or if this indeed is not possible. The reason I'm asking is because to me it feels a bit clumsy that when generating a Maven site for the aforementioned structure one has two consult two different places inside this site to see all aggregating reports.

[1] https://www.eclemma.org/jacoco/trunk/doc/report-aggregate-mojo.html
[2] https://maven.apache.org/plugins/maven-pmd-plugin/aggregate-pmd-mojo.html

Best regards
Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to