Eclipse中的编译Maven工程时出现No compiler is provided问题

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project boot-starter-dubbo: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
解决方案:
在Eclipse的菜单中:Window > Preferences > Java > Installed JREs > Execution Environments
把其指定的JRE路径替换成JDK路径
这里写图片描述

猜你喜欢

转载自blog.csdn.net/lanshen110119/article/details/80860441
今日推荐