Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:x.x.x:compile排查

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

不管是Eclipse还是IDEA,不管是Windows还是Mac

默认能遇到此错误的读者熟练掌握系统、Eclipse、IDEA、项目JDK相关配置,所以不会的还请移步百度:

Mac系统及IDEA参考:https://blog.csdn.net/u012382791/article/details/97886150

1.排查项目pom文件JDK版本一致性

2.排查“项目”开发环境配置JDK版本一致性(如果是在开发工具打包)

3.排查“开发工具”配置JDK版本一致性(如果是在开发工具打包)

4.排查系统JDK版本一致性

5.配置了多个JDK版本检查当前应用版本

6.自己安装了JDK,开发工具也安装了“JRE”,检查JAVA_HOME当前应用配置

7.修改系统配置后重启开发工具(如果是在开发工具打包)

发布了65 篇原创文章 · 获赞 8 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/u012382791/article/details/97884791