Skip to content

Commit 8fe5867

Browse files
committed
--add-opens for test execution
1 parent 21e37c9 commit 8fe5867

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: pom.xml

+17
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,19 @@
208208
<otel.version>1.26.0</otel.version>
209209
<UBUNTU_MIRROR>http://archive.ubuntu.com/ubuntu/</UBUNTU_MIRROR>
210210
<UBUNTU_SECURITY_MIRROR>http://security.ubuntu.com/ubuntu/</UBUNTU_SECURITY_MIRROR>
211+
212+
<test.additional.args>
213+
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
214+
--add-opens java.base/java.lang=ALL-UNNAMED <!--Mockito-->
215+
--add-opens java.base/java.io=ALL-UNNAMED <!--Bookkeeper NativeIO-->
216+
--add-opens java.base/java.util=ALL-UNNAMED <!--System Lambda-->
217+
--add-opens java.base/sun.net=ALL-UNNAMED <!--netty.DnsResolverUtil-->
218+
--add-opens java.desktop/java.beans=ALL-UNNAMED <!--netty.DnsResolverUtil-->
219+
--add-opens java.management/sun.management=ALL-UNNAMED <!--JvmDefaultGCMetricsLogger & MBeanStatsGenerator-->
220+
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED <!--MBeanStatsGenerator-->
221+
--add-opens java.base/jdk.internal.platform=ALL-UNNAMED <!--LinuxInfoUtils-->
222+
</test.additional.args>
223+
211224
</properties>
212225

213226
<!-- dependency definitions -->
@@ -950,6 +963,10 @@
950963
<version>${maven-surefire-plugin.version}</version>
951964
<configuration>
952965
<excludedGroups>flaky</excludedGroups>
966+
<argLine> -XX:+ExitOnOutOfMemoryError
967+
-Dio.netty.tryReflectionSetAccessible=true
968+
${test.additional.args}
969+
</argLine>
953970
</configuration>
954971
</plugin>
955972
<plugin>

0 commit comments

Comments
 (0)