完整报错信息
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文件的差别在哪,弄透原因。
版权声明:本文为qq_44116263原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。