Skip to content

Commit 235fbfe

Browse files
Add JVM arguments to suppress Java 25 warnings in tests
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 1548a32 commit 235fbfe

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,29 @@
101101
</dependency>
102102
</dependencies>
103103
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-surefire-plugin</artifactId>
107+
<configuration>
108+
<argLine>
109+
@{argLine}
110+
-XX:+EnableDynamicAgentLoading
111+
--enable-native-access=ALL-UNNAMED
112+
--add-opens java.base/sun.misc=ALL-UNNAMED
113+
</argLine>
114+
</configuration>
115+
</plugin>
104116
<plugin>
105117
<groupId>org.apache.maven.plugins</groupId>
106118
<artifactId>maven-failsafe-plugin</artifactId>
119+
<configuration>
120+
<argLine>
121+
@{argLine}
122+
-XX:+EnableDynamicAgentLoading
123+
--enable-native-access=ALL-UNNAMED
124+
--add-opens java.base/sun.misc=ALL-UNNAMED
125+
</argLine>
126+
</configuration>
107127
<executions>
108128
<execution>
109129
<goals>

0 commit comments

Comments
 (0)