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

前端 未结 9 2501
谎友^
谎友^ 2021-02-01 00:54

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         


        
9条回答
  •  失恋的感觉
    2021-02-01 01:52

    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

提交回复
热议问题