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

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

    I had same issue and i have added below configuration in pom.xml and it works.

    
       
       
            maven-compiler-plugin
            3.5.1
            
                1.8
                1.8
            
        
       
       
    

提交回复
热议问题