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/18 14:04:02 UTC

(jackrabbit-oak) 01/01: OAK-12140: use aggregated coverage report in Sonar checks

This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch OAK-12140
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit fe9e2e89b0204160ad2a7828f8ee9d0a86b02a5e
Author: Julian Reschke <re...@apache.org>
AuthorDate: Wed Mar 18 15:03:42 2026 +0100

    OAK-12140: use aggregated coverage report in Sonar checks
---
 oak-parent/pom.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index 2f40074831..ecbd86aac1 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -90,9 +90,9 @@
     <!-- refresh interval in seconds for elastic stats cache (default is 60 seconds).
      Lower interval is needed for tests to execute faster. So setting to 10 seconds using a system property-->
     <oak.elastic.statsRefreshSeconds>10</oak.elastic.statsRefreshSeconds>
-    <sonar.coverage.jacoco.xmlReportPaths>
-      ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
-    </sonar.coverage.jacoco.xmlReportPaths>
+    <!-- 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 -->
+    <!-- "maven.multiModuleProjectDirectory" is undocumented (https://issues.apache.org/jira/browse/MNG-6589) but the only way to reference the aggregate root directory in Maven 3.x-->
+    <sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
     <sonar.organization>apache</sonar.organization>
     <sonar.host.url>https://sonarcloud.io</sonar.host.url>
   </properties>