diff --git a/flink-runtime/pom.xml b/flink-runtime/pom.xml
index 6837595bf4d1e..5f0063d7bdcd8 100644
--- a/flink-runtime/pom.xml
+++ b/flink-runtime/pom.xml
@@ -50,7 +50,8 @@ under the License.
OperatorStateBackendTest
-->--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
+ -->--add-opens=java.base/java.util.concurrent=ALL-UNNAMED -Djunit.platform.reflection.search.useLegacySemantics=true
diff --git a/flink-table/flink-sql-gateway/pom.xml b/flink-table/flink-sql-gateway/pom.xml
index 7a3f9bc918bf4..6511fd4c6bf0d 100644
--- a/flink-table/flink-sql-gateway/pom.xml
+++ b/flink-table/flink-sql-gateway/pom.xml
@@ -39,7 +39,11 @@
SqlGatewayTest/CommonTestUtils.setEnv
-->--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
+ -->--add-opens=java.base/java.util.concurrent=ALL-UNNAMED -Djunit.platform.reflection.search.useLegacySemantics=true
diff --git a/flink-table/flink-sql-parser/pom.xml b/flink-table/flink-sql-parser/pom.xml
index 866fa4f97e3a8..d355726f77758 100644
--- a/flink-table/flink-sql-parser/pom.xml
+++ b/flink-table/flink-sql-parser/pom.xml
@@ -35,6 +35,12 @@ under the License.
+ -Djunit.platform.reflection.search.useLegacySemantics=true
+
diff --git a/flink-table/flink-table-planner/pom.xml b/flink-table/flink-table-planner/pom.xml
index 2458256fb4042..8cc8106209977 100644
--- a/flink-table/flink-table-planner/pom.xml
+++ b/flink-table/flink-table-planner/pom.xml
@@ -50,7 +50,11 @@ under the License.
kryo MathContext
-->--add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED
+ -->--add-opens=java.base/java.nio=ALL-UNNAMED -Djunit.platform.reflection.search.useLegacySemantics=true
diff --git a/flink-yarn-tests/pom.xml b/flink-yarn-tests/pom.xml
index ce5bfca0df278..a53107346e818 100644
--- a/flink-yarn-tests/pom.xml
+++ b/flink-yarn-tests/pom.xml
@@ -44,7 +44,11 @@ under the License.
MiniYARNCluster
-->--add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED
+ -->--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED -Djunit.platform.reflection.search.useLegacySemantics=true
diff --git a/pom.xml b/pom.xml
index 6bb6ed9ab2c89..b04a3aefc0390 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,7 @@ under the License.
1.2.0
2.3.1
4.13.2
- 5.10.1
+ 5.11.4
1.2.0
5.14.2
1.3