Skip to content

Commit

Permalink
HADOOP-19298. [JDK17] Add a JDK17 profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Oct 1, 2024
1 parent 6fd4fea commit 9c83ac9
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion hadoop-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<os-maven-plugin.version>1.7.0</os-maven-plugin.version>

<!-- define the Java language version used by the compiler -->
<javac.version>1.8</javac.version>
<javac.version>17</javac.version>

<!-- The java version enforced by the maven enforcer -->
<!-- more complex patterns can be used here, such as
Expand Down Expand Up @@ -2737,6 +2737,48 @@
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>jdk17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<maven.compiler.release>17</maven.compiler.release>
<argLine>
--add-opens java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens java.base/java.nio.channels.spi=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-exports=java.base/sun.net.dns=ALL-UNNAMED
--add-exports=java.base/sun.net.util=ALL-UNNAMED
--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports java.base/sun.nio.ch=ALL-UNNAMED
--add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-exports java.base/sun.security.x509=ALL-UNNAMED
</argLine>
<surefire.Xmx>3600m</surefire.Xmx>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>17</source>
<skip>false</skip>
<additionalOptions>--ignore-source-errors</additionalOptions>
<failOnError>false</failOnError>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

<repositories>
Expand Down

0 comments on commit 9c83ac9

Please sign in to comment.