You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dong Lin (Jira)" <ji...@apache.org> on 2022/12/25 08:36:00 UTC
[jira] [Updated] (FLINK-30501) Update pom.xml to use Java 11 by default
[ https://issues.apache.org/jira/browse/FLINK-30501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dong Lin updated FLINK-30501:
-----------------------------
Description:
Flink 1.15 and later versions require at least Java 11 to build from sources [1]. However, the pom.xml on the master branch still sets target.java.version to 1.8, which is inconsistent with [1].
In addition, if users build Flink with Java 8 using the following command, the build would fail with org.apache.maven.plugin.MojoExecutionException.
{code:bash}
mvn clean install -DskipTests -Dfast -Pskip-webui-build
{code}
We should update pom.xml to use Java 11 as the target Java version. And maven package/install should fail with proper error if users Java version is below 11.
[1] [https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/flinkdev/building/]
was:
Flink 1.15 and later versions require at least Java 11 to build from sources [1]. However, the pom.xml on the master branch still sets target.java.version to 1.8, which is inconsistent with [1].
In addition, if users build Flink with Java 8 using the following command, the build would fail with org.apache.maven.plugin.MojoExecutionException.
```
mvn clean install -DskipTests -Dfast -Pskip-webui-build
```
We should update pom.xml to use Java 11 as the target Java version. And maven package/install should fail with proper error if users Java version is below 11.
[1] https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/flinkdev/building/
> Update pom.xml to use Java 11 by default
> ----------------------------------------
>
> Key: FLINK-30501
> URL: https://issues.apache.org/jira/browse/FLINK-30501
> Project: Flink
> Issue Type: Improvement
> Reporter: Dong Lin
> Priority: Major
>
> Flink 1.15 and later versions require at least Java 11 to build from sources [1]. However, the pom.xml on the master branch still sets target.java.version to 1.8, which is inconsistent with [1].
> In addition, if users build Flink with Java 8 using the following command, the build would fail with org.apache.maven.plugin.MojoExecutionException.
>
> {code:bash}
> mvn clean install -DskipTests -Dfast -Pskip-webui-build
> {code}
>
> We should update pom.xml to use Java 11 as the target Java version. And maven package/install should fail with proper error if users Java version is below 11.
>
> [1] [https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/flinkdev/building/]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)