sts maven 编译问题记录

2017-10-12  本文已影响0人  xiaohu_

问题:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?


最终解决方案:


原因是eclipse默认是运行在jre上的,但是maven插件需要使用jdk,因此需要在eclipse修改Installed JRES
上一篇下一篇

猜你喜欢

热点阅读