新安装的eclipse maven install 错误

最近新换了个Eclipse,maven install的时候报如下错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project kettle-manager: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

解决办法:

此问题是由于java环境配置错误导致的,maven需要配置JDK路径而不是jre,把jre删除修改为JDK后重新编译,install就正常了

原文地址:https://www.cnblogs.com/lidq/p/9198209.html