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

前端 未结 10 621
长情又很酷
长情又很酷 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:54

    I had same issue, the problem is with properties. Check your JavaSE version in your project, it will be displayed beside JRE System Library folder in your project. If it is 1.5, then it will throw an error. Most probably you will have a updated version, so check the version and update it. I have updated it below based on your code.

    
       1.6
       1.6
     
    

提交回复
热议问题