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)