You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2026/03/16 10:50:48 UTC
(jackrabbit-oak) branch OAK-12137 created (now 2cdc9a5a64)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a change to branch OAK-12137
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at 2cdc9a5a64 OAK-12137: Create aggregate jacoco report
This branch includes the following new commits:
new 2cdc9a5a64 OAK-12137: Create aggregate jacoco report
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jackrabbit-oak) 01/01: OAK-12137: Create aggregate jacoco report
Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch OAK-12137
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 2cdc9a5a6419cdbbe45728dfc51d418b6374cb49
Author: Julian Reschke <ju...@gmx.de>
AuthorDate: Mon Mar 16 11:50:14 2026 +0100
OAK-12137: Create aggregate jacoco report
---
oak-parent/pom.xml | 17 +++++++++++++++++
pom.xml | 14 ++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index 453c26d42a..c236659f32 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -361,6 +361,23 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.13</version>
</plugin>
+ <!-- generates aggregate (cross-module) coverage reports, https://github.com/olamy/jacoco-aggregator-maven-plugin
+ only enable this plugin (without inheritance) in the root module, as this is an aggregator plugin
+ -->
+ <plugin>
+ <groupId>io.github.olamy.maven.plugins</groupId>
+ <artifactId>jacoco-aggregator-maven-plugin</artifactId>
+ <version>1.0.3</version>
+ <executions>
+ <execution>
+ <id>aggregate</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>report-aggregate-all</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/pom.xml b/pom.xml
index 41ab1d687d..2a0c2a4a10 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,6 +35,8 @@
<skip.deployment>true</skip.deployment>
<sonar.organization>apache</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
+ <!-- this project uses cross-module reports with one aggregate, https://docs.sonarsource.com/sonarcloud/enriching/test-coverage/java-test-coverage/#add-coverage-in-a-multi-module-maven-project -->
+ <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>
<modules>
@@ -111,6 +113,18 @@
</build>
<profiles>
+ <profile>
+ <id>coverage</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>io.github.olamy.maven.plugins</groupId>
+ <artifactId>jacoco-aggregator-maven-plugin</artifactId>
+ <inherited>false</inherited><!-- only execute on root level (as aggregator)-->
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>doc</id>
<modules>