[
https://issues.apache.org/jira/browse/HADOOP-19298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888886#comment-17888886
]
ASF GitHub Bot commented on HADOOP-19298:
-----------------------------------------
pan3793 commented on code in PR #7085:
URL: https://github.com/apache/hadoop/pull/7085#discussion_r1797694281
##########
hadoop-project/pom.xml:
##########
@@ -2737,6 +2737,46 @@
</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
Review Comment:
My suggestion is just
```patch
+ <profile>
+ <id>java9</id>
+ <activation>
+ <jdk>[9,)</jdk>
+ </activation>
+ <properties>
+ <maven.compiler.release>${javac.version}</maven.compiler.release>
+ </properties>
+ </profile>
```
and it's encouraged to
> use version numbers without the "1." prefix (supported since javac 5)
https://github.com/apache/maven-apache-parent/commit/ded34a863110021191af2db5b772b665a2789394#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R101
```patch
- <javac.version>1.8</javac.version>
+ <javac.version>8</javac.version>
```
> [JDK17] Add a JDK17 profile
> ---------------------------
>
> Key: HADOOP-19298
> URL: https://issues.apache.org/jira/browse/HADOOP-19298
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: common
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]