Skip to content

Commit 5394498

Browse files
committed
Permament enabling of dynamyc agents for tests on JDK9+
1 parent 4324f5f commit 5394498

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@
248248
<release>8</release>
249249
</configuration>
250250
</plugin>
251+
<plugin>
252+
<groupId>org.apache.maven.plugins</groupId>
253+
<artifactId>maven-surefire-plugin</artifactId>
254+
<configuration>
255+
<!-- Hides warnings of mockito and jacoco usage in tests on JDK 21+ -->
256+
<argLine>${argLine} -XX:+EnableDynamicAgentLoading</argLine>
257+
</configuration>
258+
</plugin>
251259
</plugins>
252260
</build>
253261
</profile>

0 commit comments

Comments
 (0)