diff --git a/pom.xml b/pom.xml
index 3b48f73cb4c9..5a238bd613bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -952,6 +952,18 @@
"-Djava.library.path=${hadoop.library.path};${java.library.path}"
-Dorg.apache.hbase.thirdparty.io.netty.leakDetection.level=advanced
-Dio.opentelemetry.context.enableStrictContext=true
+ -Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true
+ --add-modules jdk.unsupported
+ --add-opens java.base/java.nio=ALL-UNNAMED
+ --add-opens java.base/sun.nio.ch=ALL-UNNAMED
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ --add-opens java.base/jdk.internal.ref=ALL-UNNAMED
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens java.base/java.util=ALL-UNNAMED
+ --add-opens java.base/java.util.concurrent=ALL-UNNAMED
+ --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
+ --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
+ --add-opens java.base/jdk.internal.util.random=ALL-UNNAMED
${hbase-surefire.argLine} @{jacocoArgLine}
1.5.1
@@ -3234,18 +3246,7 @@
${releaseTarget}
- -Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true
- --add-modules jdk.unsupported
- --add-opens java.base/java.nio=ALL-UNNAMED
- --add-opens java.base/sun.nio.ch=ALL-UNNAMED
- --add-opens java.base/java.lang=ALL-UNNAMED
- --add-opens java.base/jdk.internal.ref=ALL-UNNAMED
- --add-opens java.base/java.lang.reflect=ALL-UNNAMED
- --add-opens java.base/java.util=ALL-UNNAMED
- --add-opens java.base/java.util.concurrent=ALL-UNNAMED
- --add-opens java.base/jdk.internal.util.random=ALL-UNNAMED
- --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
- --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
+ ${hbase-surefire.jdk11.flags}
${hbase-surefire.argLine}
@{jacocoArgLine}
jenkins.patch