Skip to content

Commit 5d8b471

Browse files
committed
Generate JaCoCo report
* Added plugin to generate coverage report.
1 parent 46c9b92 commit 5d8b471

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

pom.xml

+32-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<version.puppycrawl>10.21.2</version.puppycrawl>
6767
<version.spotbugs.plugin>4.9.1.0</version.spotbugs.plugin>
6868
<version.pmd.plugin>3.26.0</version.pmd.plugin>
69+
<version.jacoco.plugin>0.8.12</version.jacoco.plugin>
6970
</properties>
7071

7172
<organization>
@@ -299,6 +300,36 @@
299300
</configuration>
300301
</plugin>
301302

303+
<plugin>
304+
<groupId>org.jacoco</groupId>
305+
<artifactId>jacoco-maven-plugin</artifactId>
306+
<version>${version.jacoco.plugin}</version>
307+
<executions>
308+
<execution>
309+
<goals>
310+
<goal>prepare-agent</goal>
311+
</goals>
312+
</execution>
313+
314+
<execution>
315+
<id>report</id>
316+
<phase>test</phase>
317+
<goals>
318+
<goal>report</goal>
319+
</goals>
320+
<configuration>
321+
<outputDirectory>${project.build.directory}/jacoco</outputDirectory>
322+
</configuration>
323+
</execution>
324+
</executions>
325+
<configuration>
326+
<excludes>
327+
<exclude>org/jgroups/raft/demos/*.class</exclude>
328+
<exclude>org/jgroups/raft/client/*.class</exclude>
329+
</excludes>
330+
</configuration>
331+
</plugin>
332+
302333
<plugin>
303334
<groupId>org.sonatype.plugins</groupId>
304335
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -440,7 +471,7 @@
440471
<usedefaultlisteners>false</usedefaultlisteners>
441472
<listener>${testNGListeners}</listener>
442473
</properties>
443-
<argLine>${jgroups.tests.jvmargs} -Djdk.attach.allowAttachSelf=true</argLine>
474+
<argLine>${argLine} ${jgroups.tests.jvmargs} -Djdk.attach.allowAttachSelf=true</argLine>
444475
<!-- Use TCP for plugin <-> fork JVM communication -->
445476
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
446477
<!-- Disable modular classpath -->

0 commit comments

Comments
 (0)