Hi,
You've probably long-since moved on from this but just in case, do you have a working sample project? We tried using this plugin but discovered that in our multi-module setup the plugin ended up executing first because the top-level module executes first in the reactor. It looks like the current logic at Line 92 in src/main/java/org/codefilarete/maven/jacoco/ReportAggregateMojo.java:
private boolean shouldDelayExecution() {
return !session.getCurrentProject().isExecutionRoot();
}
Should be changed to something like:
private boolean shouldDelayExecution() {
List<MavenProject> projects = session.getProjects();
return session.getCurrentProject() != projects.get(projects.size() - 1);
}
to ensure the aggregation executes with the last module in the build but I'm probably missing something.
Hi,
You've probably long-since moved on from this but just in case, do you have a working sample project? We tried using this plugin but discovered that in our multi-module setup the plugin ended up executing first because the top-level module executes first in the reactor. It looks like the current logic at Line 92 in
src/main/java/org/codefilarete/maven/jacoco/ReportAggregateMojo.java:Should be changed to something like:
to ensure the aggregation executes with the last module in the build but I'm probably missing something.