Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions jackrabbit-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,39 @@
<properties>
<skip.coverage>false</skip.coverage>
</properties>
<build>
<pluginManagement>
<plugins>
<!-- 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>
<configuration>
<includes>
<!-- exclude shaded 3rd party classes -->
<include>org/apache/jackrabbit/**</include>
</includes>
<excludes>
<!-- exclude classes in jackrabbit-jcr-tests -->
<exclude>org/apache/jackrabbit/test/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate-all</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

Expand Down
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
<name>Apache Jackrabbit</name>
<packaging>pom</packaging>

<properties>
<!-- 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>
<module>jackrabbit-parent</module>
<module>jackrabbit-jcr-commons</module>
Expand Down Expand Up @@ -87,6 +92,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>apache-release</id>
<properties>
Expand Down