Skip to content

Commit 9c1a133

Browse files
committed
Fix POM
1 parent 520ca8b commit 9c1a133

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pom.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
<excludes>
225225
<exclude>**/*TestSuite.java</exclude>
226226
</excludes>
227-
<argLine>-Xshare:off ${test-arguments}</argLine>
227+
<argLine>${test-arguments}</argLine>
228228
<systemPropertyVariables>
229229
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
230230
<rabbitmqctl.bin>DOCKER:rabbitmq</rabbitmqctl.bin>
@@ -405,13 +405,24 @@
405405

406406
<profiles>
407407

408+
<profile>
409+
<id>jvm-test-arguments-below-java-21</id>
410+
<activation>
411+
<jdk>[11,21)</jdk>
412+
</activation>
413+
<properties>
414+
<test-arguments>-Xshare:off</test-arguments>
415+
</properties>
416+
</profile>
417+
418+
408419
<profile>
409420
<id>jvm-test-arguments-java-21-and-more</id>
410421
<activation>
411422
<jdk>[21,)</jdk>
412423
</activation>
413424
<properties>
414-
<test-arguments>-XX:+EnableDynamicAgentLoading</test-arguments>
425+
<test-arguments>-Xshare:off -XX:+EnableDynamicAgentLoading</test-arguments>
415426
</properties>
416427
</profile>
417428

0 commit comments

Comments
 (0)