小编Ami*_*nul的帖子

Intellij maven项目致命错误编译:无效标志: - release

我试图从Spring-boot开始,在Intellij中使用Maven请帮助我我收到错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project spring-rest: Fatal error compiling: invalid flag: --release -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Process finished with exit code 1
Run Code Online (Sandbox Code Playgroud)

我的pom.xml是:

<?xml version="1.0" encoding="UTF-8"?> <project …
Run Code Online (Sandbox Code Playgroud)

java intellij-idea maven maven-compiler-plugin spring-boot

23
推荐指数
4
解决办法
2万
查看次数