[ 
https://issues.apache.org/jira/browse/FLINK-30501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17676051#comment-17676051
 ] 

Dong Lin commented on FLINK-30501:
----------------------------------

[~chesnay] I think you have closed this ticket too early before correctly 
understanding its goal.

As mentioned in the ticket title and description, the goal of this ticket is to 
"set requireJavaVersion in pom.xml to be at least 11". This is because we have 
explicitly mentioned in the Flink doc here [1] that "Flink requires at least 
Java 11 to build".

If Flink requires exactly Java 11 to be built from source, I think we need to 
fix the doc[1] properly. The goal of this ticket can be updated to require 
exactly Java 11.

BTW, I don't think the issue is because I used Java 19. I double checked that I 
was using Java 8 when observing the error mentioned in the ticket. Maybe you 
can try it by youself?

 

[1] https://nightlies.apache.org/flink/flink-docs-master/docs/flinkdev/building/

> Set requireJavaVersion in pom.xml to be at least 11
> ---------------------------------------------------
>
>                 Key: FLINK-30501
>                 URL: https://issues.apache.org/jira/browse/FLINK-30501
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Build System / CI
>            Reporter: Dong Lin
>            Assignee: Dong Lin
>            Priority: Major
>              Labels: pull-request-available
>
> Flink 1.15 and later versions require at least Java 11 to build from sources 
> [1]. However, if users build Flink with Java 1.8 using the following command, 
> the build would fail due to org.apache.maven.plugin.MojoExecutionException 
> without mentioning the Java version issue.
>  
> {code:bash}
> mvn clean install -DskipTests -Pskip-webui-build
> {code}
>  
> We should update the required JDK version in pom.xml so that `mvn install` 
> will report error directly related to the JDK version if users's JDK 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)

Reply via email to