Skip to content

Commit c0daa2f

Browse files
committed
Fix JaCoCo reporting
Needed to pass in ${argLine} to Surefire.
1 parent d5bc89f commit c0daa2f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pom.xml

+12-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
<dependency>
308308
<groupId>com.github.spotbugs</groupId>
309309
<artifactId>spotbugs-annotations</artifactId>
310-
<version>4.8.5</version>
310+
<version>${spotbugs.version}</version>
311311
<scope>provided</scope>
312312
</dependency>
313313

@@ -363,7 +363,7 @@
363363
<excludes>
364364
<exclude>**/*TestSuite.java</exclude>
365365
</excludes>
366-
<argLine>${test-arguments}</argLine>
366+
<argLine>${argLine} ${test-arguments}</argLine>
367367
<systemPropertyVariables>
368368
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
369369
<rabbitmqctl.bin>DOCKER:rabbitmq</rabbitmqctl.bin>
@@ -673,13 +673,22 @@
673673
<mockito.version>4.11.0</mockito.version>
674674
</properties>
675675
</profile>
676+
<profile>
677+
<id>jvm-test-arguments-below-java-21</id>
678+
<activation>
679+
<jdk>[11,21)</jdk>
680+
</activation>
681+
<properties>
682+
<test-arguments>-Xshare:off</test-arguments>
683+
</properties>
684+
</profile>
676685
<profile>
677686
<id>jvm-test-arguments-java-21-and-more</id>
678687
<activation>
679688
<jdk>[21,)</jdk>
680689
</activation>
681690
<properties>
682-
<test-arguments>-XX:+EnableDynamicAgentLoading</test-arguments>
691+
<test-arguments>-Xshare:off -XX:+EnableDynamicAgentLoading</test-arguments>
683692
</properties>
684693
</profile>
685694

0 commit comments

Comments
 (0)