Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project LogTest: Compilation failure -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project LogTest: Compilation failure -> [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:
本人环境为jdk1.8
出现问题原因:导入maven包
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
解决办法 将jre更换成jdk
![](https://images2015.cnblogs.com/blog/1079472/201612/1079472-20161213125437339-1395103430.png)
![](https://images2015.cnblogs.com/blog/1079472/201612/1079472-20161213125456167-1573927741.png)
![](https://images2015.cnblogs.com/blog/1079472/201612/1079472-20161213125516323-1073710035.png)
选择好你安装的位置
![](https://images2015.cnblogs.com/blog/1079472/201612/1079472-20161213125608261-788049760.png)
点击确定--》点击finish
![](https://images2015.cnblogs.com/blog/1079472/201612/1079472-20161213125618808-1679626167.png)
选择jdk 点击OK 完成
再次导入:maven install
OK
本文章有很多不足之处,希望大家多多指正。欢迎大家转载,请注明出处!码农打字不易,敬请谅解,谢谢!