diff --git a/plugin/trino-bigquery/pom.xml b/plugin/trino-bigquery/pom.xml
index 97ff8bf00cc5..9675a3756ebd 100644
--- a/plugin/trino-bigquery/pom.xml
+++ b/plugin/trino-bigquery/pom.xml
@@ -499,13 +499,17 @@
false
+
+
+ --add-opens=java.base/java.nio=ALL-UNNAMED
+
+
org.apache.maven.plugins
maven-surefire-plugin
- --add-opens=java.base/java.nio=ALL-UNNAMED
**/TestBigQueryArrowConnectorTest.java
**/TestBigQueryArrowTypeMapping.java