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

前端 未结 9 2538
谎友^
谎友^ 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:38

    I think you have wrong your pom.xml:

    
       6
       1.6
     
    

    change to:

    
       1.6
       1.6
     
    

    Now depending if you are using the command line use:

    mvn clean compile

    or either way(eclipse ide)

    Right click on project Run with maven>build>Goal (compile)

提交回复
热议问题