You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2026/02/09 18:49:19 UTC
(jackrabbit) branch bugfix/fix-aggregate-coverage created (now ec8379ccf)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a change to branch bugfix/fix-aggregate-coverage
in repository https://gitbox.apache.org/repos/asf/jackrabbit.git
at ec8379ccf JCR-5173: Fix sonar.coverage.jacoco.xmlReportPaths for modules
This branch includes the following new commits:
new ec8379ccf JCR-5173: Fix sonar.coverage.jacoco.xmlReportPaths for modules
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) 01/01: JCR-5173: Fix sonar.coverage.jacoco.xmlReportPaths for modules
Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch bugfix/fix-aggregate-coverage
in repository https://gitbox.apache.org/repos/asf/jackrabbit.git
commit ec8379ccfbf5c5f13e8420fd2aa6e70c9ea78df1
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Feb 9 19:49:13 2026 +0100
JCR-5173: Fix sonar.coverage.jacoco.xmlReportPaths for modules
All modules must refer to the single aggregate report to extract
coverage information only from there.
---
jackrabbit-parent/pom.xml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/jackrabbit-parent/pom.xml b/jackrabbit-parent/pom.xml
index 12450b070..a3eabe8a9 100644
--- a/jackrabbit-parent/pom.xml
+++ b/jackrabbit-parent/pom.xml
@@ -80,7 +80,8 @@
<minimalMavenBuildVersion>3.6.1</minimalMavenBuildVersion><!-- due to https://issues.apache.org/jira/browse/MNG-6059 -->
<!-- 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>
+ <!-- "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>
<!-- this should be the same as the exclusions for jacoco, compare with https://groups.google.com/g/sonarqube/c/VwEE_ZD2KzI -->
<sonar.coverage.exclusions>**/org/apache/jackrabbit/test/**</sonar.coverage.exclusions>
<!-- exclude test code from analysis-->