From 01e20a350c0dae3a706a2f93f544e09c0949d6e9 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 22 Nov 2025 14:07:01 -0800 Subject: [PATCH] refactor: extract surefire JVM args to property - Move multi-line argLine to surefire.jvm.args property - Reference property in argLine for cleaner configuration - Improves maintainability and readability - Follows Maven best practices for JVM argument management - Avoids potential whitespace parsing issues --- test/java/spark/pom.xml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/test/java/spark/pom.xml b/test/java/spark/pom.xml index e87c8e362..2c2952421 100644 --- a/test/java/spark/pom.xml +++ b/test/java/spark/pom.xml @@ -23,6 +23,24 @@ 3.80 2.15.3 4.1.100.Final + + -Xmx2g + -Dhadoop.home.dir=/tmp + --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.invoke=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.net=ALL-UNNAMED + --add-opens=java.base/java.nio=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-opens=java.base/java.util.concurrent=ALL-UNNAMED + --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED + --add-opens=java.base/sun.nio.ch=ALL-UNNAMED + --add-opens=java.base/sun.nio.cs=ALL-UNNAMED + --add-opens=java.base/sun.security.action=ALL-UNNAMED + --add-opens=java.base/sun.util.calendar=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + @@ -227,24 +245,7 @@ **/*Test.java - - -Xmx2g - -Dhadoop.home.dir=/tmp - --add-opens=java.base/java.lang=ALL-UNNAMED - --add-opens=java.base/java.lang.invoke=ALL-UNNAMED - --add-opens=java.base/java.lang.reflect=ALL-UNNAMED - --add-opens=java.base/java.io=ALL-UNNAMED - --add-opens=java.base/java.net=ALL-UNNAMED - --add-opens=java.base/java.nio=ALL-UNNAMED - --add-opens=java.base/java.util=ALL-UNNAMED - --add-opens=java.base/java.util.concurrent=ALL-UNNAMED - --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED - --add-opens=java.base/sun.nio.ch=ALL-UNNAMED - --add-opens=java.base/sun.nio.cs=ALL-UNNAMED - --add-opens=java.base/sun.security.action=ALL-UNNAMED - --add-opens=java.base/sun.util.calendar=ALL-UNNAMED - --add-exports=java.base/sun.nio.ch=ALL-UNNAMED - + ${surefire.jvm.args} /tmp