美文网首页
sts maven 编译问题记录

sts maven 编译问题记录

作者: xiaohu_ | 来源:发表于2017-10-12 10:19 被阅读0次

问题:

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

相关文章

网友评论

      本文标题:sts maven 编译问题记录

      本文链接:https://www.haomeiwen.com/subject/piaxdttx.html