问题描述
release
中使用的 compilerVersion
tag/property 和 maven-compiler-plugin
tag/property 有什么区别,因为我们在构建时使用 release 标签升级到 java 11 时遇到问题<compilerVersion>11<compilerVersion>
在 pom.xml 中它可以工作但是当我们使用 <release>11</release>
错误:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project Test: Fatal error compiling: invalid flag: --release -> [Help 1]
10:54:54 [ERROR]
10:54:54 [ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch.
10:54:54 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
10:54:54 [ERROR]
10:54:54 [ERROR] For more information about the errors and possible solutions,please read the following articles:
10:54:54 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException