并且报入如下错误:可能是java版本冲突了
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
背景:之前的项目可以构建成功,后面安装了新java版本后不能构建项目了
1.maven报错信息
2.原因是java版本切换的时候出现了问题
如果这里的java_home是17的话,说明IDEA使用的java_home是17;这时候不管你的系统配置java_home是多少,IDEA的都以这个为准。
解决方法:
系统配置环境变量改成java8后,重启IDEA即可解决