Skip to content

Commit 3810f14

Browse files
committed
[SYSTEMDS-3873] Java 17 System POM
1 parent e868917 commit 3810f14

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pom.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<!-- aws-java-sdk-bundle version should align with hadoop-aws version -->
6868
<!-- aws-java-sdk-bundle.version>1.12.367</aws-java-sdk-bundle.version -->
6969
<!-- Set java compile level via argument, ex: 1.8 1.9 10 11-->
70-
<java.level>11</java.level>
70+
<java.level>17</java.level>
7171
<java.version>{java.level}</java.version>
7272
<!-->Testing settings<!-->
7373
<maven.test.skip>false</maven.test.skip>
@@ -82,6 +82,17 @@
8282
<automatedtestbase.outputbuffering>false</automatedtestbase.outputbuffering>
8383
<argLine>-Xms3000m -Xmx3000m -Xmn300m</argLine>
8484
<enableStats>false</enableStats>
85+
86+
<!-- Dependent on Spark open to access deprecated api components from <= Java 11. Should be removed once Spark updates fully to Java 17 -->
87+
<jvm.addopens>
88+
--add-opens=java.base/java.nio=ALL-UNNAMED
89+
--add-opens=java.base/java.io=ALL-UNNAMED
90+
--add-opens=java.base/java.util=ALL-UNNAMED
91+
--add-opens=java.base/java.lang=ALL-UNNAMED
92+
--add-opens=java.base/java.lang.ref=ALL-UNNAMED
93+
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
94+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
95+
</jvm.addopens>
8596
</properties>
8697

8798
<repositories>
@@ -368,6 +379,9 @@
368379
<systemPropertyVariables>
369380
<log4j.configurationFile>file:src/test/resources/log4j.properties</log4j.configurationFile>
370381
</systemPropertyVariables>
382+
<argLine>
383+
${jvm.addopens}
384+
</argLine>
371385
</configuration>
372386
</plugin>
373387

0 commit comments

Comments
 (0)