maven项目中fatal error compiling 无效的目标发行版1.8问题解决方法

来源: 易习特达网 时间: 2016-11-14 05:53:59

maven项目在编译时出现;Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project word: Fatal error compiling: 无效的目标发行版: 1.8的错误,具体信息如下: 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.

0:compile (default-compile) on project word: Fatal error compiling: 无效的目标发

行版: 1.8 -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

ch.

[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 rea

d the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE

xception

maven编译错误

出现这个问题,通常是由于maven中的java版本问题,这里将版本因为1.8的缘故导致错误

pom中设置java版本问题


本页地址:http://www.easytd.com/yichangjijin/d_16111405313.html

常用工具