Error “Source option 5 is no longer supported. Use 6 or later” on Maven compile

前端 未结 10 629
长情又很酷
长情又很酷 2021-02-01 01:27

I am getting the following error or $ mvn compile:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on         


        
10条回答
  •  粉色の甜心
    2021-02-01 01:49

    For the new Apache net Bean its a little bit different from the suggestion by SUPARNA SOMAN

    • Right Click on your Project -Hover on "set configuration" and click customize configuration -.A new dialogue box opens....
    • At the left corner where the categories are, Click on "Source"
    • At the select form on the page below, select your required version of JDK ----see image for this last step.the last step required to change jdk version

提交回复
热议问题