You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Dong Lin (Jira)" <ji...@apache.org> on 2022/12/25 08:35:00 UTC
[jira] [Created] (FLINK-30501) Update pom.xml to use Java 11 by default
Dong Lin created FLINK-30501:
--------------------------------
Summary: 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
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/
--
This message was sent by Atlassian Jira
(v8.20.10#820010)