As a workaround I can use two reports "report" + "report-aggregate", but 2 reports instead of one is little confusing.
I have prepared little fix, see https://github.com/jacoco/jacoco/pull/430
Tests in AppVeyor works fine, Travis CI failed but because of PermGem space. I doubt my fix is responsible for that.
Best Regards,
Martin.
Travis CI failed but because of PermGem space. I doubt my fix is responsible for that.
You are right, usage of words "root project" was not correct. Nevertheless primary intention was to added the classes from module "report" from your example . Also your test project "it-report-aggregate" generates site which DOES NOT contain ReportTest class located report module.
During generating report/site original implementation loads all exec files from all submodules and also from "report" module. But it omits "analyzing" classes from report module. Here is the log from your project. I guest it is wrong
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report-aggregate (report-aggregate) @ report ---
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/report/target/jacoco.exec
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/child1/target/jacoco.exec
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/child1-test/target/jacoco.exec
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/child2/target/jacoco.exec
[INFO] Analyzed bundle 'child1' with 2 classes
[INFO] Analyzed bundle 'child2' with 1 classes
So, yes, goal is add the source files from "report" module.
Best Regards,
MOmega