Eclipse 在 Maven Build时报错[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project springboot: Compilation failure [ERROR] No compiler is provided in this environment.
看错误提示就是没有提供编译器。
经查找解决方案:
1:Window > Preferences > Java > Installed JREs > 页面安装正确的jre 如:C:\Program Files (x86)\Java\jre1.8.0_45
2:在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.8.
完成以上两步基本就可以了,如果还不行,可以maven菜单中使用下 “update project …”.