Intellij maven project Fatal error compiling: invalid flag: --release

后端 未结 4 1032
长情又很酷
长情又很酷 2020-12-16 09:20

I am trying to start with Spring-boot, Maven in Intellij Please help me I am getting the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven         


        
4条回答
  •  独厮守ぢ
    2020-12-16 09:28

    This has to do with the version of JDK running on your system. As per the documentation for maven-compiler-plugin, the release flag is supported since 1.9, and thus has to be commented/removed from the POM if you are using prior (1.8 and below) versions of JDK.

    Check Maven documentation for release tag for maven-compiler-plugin here

提交回复
热议问题