完整报错信息
Failure to transfer com.xxx.ijcf:ijcf-boot-parent:pom:3.2.0.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.xxx.ijcf:ijcf-boot-parent:pom:3.2.0.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
找不到父项,maven失效,我导项目时pom.xml文件失效了,add as maven project file可以,显示蓝色m图标了,右侧maven窗口能识别出maven,但是pom里面依赖的包都没有。
如图 有lifecycle和Plugins,但是没有Dependencies
而且Project Structure里的Libraries是空的,手动导入也无法选pom.xml,

如图,右侧这些maven引入的依赖都没有,整个是空的。
解决:maven的配置文件setting.xml不对,管经理要了一份他的版本导入,然后就好使了。有空仔细对比一下两个xml文件的差别在哪,弄透原因。
博客详细描述了一个关于Maven项目的常见问题,即在IDE中导入Maven项目时,pom.xml文件中的依赖无法被识别,导致项目构建失败。作者分享了遇到的问题现象,包括依赖未显示、本地仓库缓存失败及远程仓库连接错误等,并提供了通过更新Maven配置文件setting.xml解决问题的方法。

被折叠的 条评论
为什么被折叠?



