This is an automated email from the ASF dual-hosted git repository. baunsgaard pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/systemds.git
commit 3810f14324b84360c0299844bc4455aef1163d37 Author: Sebastian Baunsgaard <baunsga...@apache.org> AuthorDate: Fri May 2 11:37:35 2025 +0200 [SYSTEMDS-3873] Java 17 System POM --- pom.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e166d0d6d2..97daa19359 100644 --- a/pom.xml +++ b/pom.xml @@ -67,7 +67,7 @@ <!-- aws-java-sdk-bundle version should align with hadoop-aws version --> <!-- aws-java-sdk-bundle.version>1.12.367</aws-java-sdk-bundle.version --> <!-- Set java compile level via argument, ex: 1.8 1.9 10 11--> - <java.level>11</java.level> + <java.level>17</java.level> <java.version>{java.level}</java.version> <!-->Testing settings<!--> <maven.test.skip>false</maven.test.skip> @@ -82,6 +82,17 @@ <automatedtestbase.outputbuffering>false</automatedtestbase.outputbuffering> <argLine>-Xms3000m -Xmx3000m -Xmn300m</argLine> <enableStats>false</enableStats> + + <!-- Dependent on Spark open to access deprecated api components from <= Java 11. Should be removed once Spark updates fully to Java 17 --> + <jvm.addopens> + --add-opens=java.base/java.nio=ALL-UNNAMED + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.ref=ALL-UNNAMED + --add-opens=java.base/java.util.concurrent=ALL-UNNAMED + --add-opens=java.base/sun.nio.ch=ALL-UNNAMED + </jvm.addopens> </properties> <repositories> @@ -368,6 +379,9 @@ <systemPropertyVariables> <log4j.configurationFile>file:src/test/resources/log4j.properties</log4j.configurationFile> </systemPropertyVariables> + <argLine> + ${jvm.addopens} + </argLine> </configuration> </plugin>