idea导入maven项目报错Failure to transfer com.xxx.:ijcf-boot-parent...:was cached in the local repository,

博客详细描述了一个关于Maven项目的常见问题,即在IDE中导入Maven项目时,pom.xml文件中的依赖无法被识别,导致项目构建失败。作者分享了遇到的问题现象,包括依赖未显示、本地仓库缓存失败及远程仓库连接错误等,并提供了通过更新Maven配置文件setting.xml解决问题的方法。

完整报错信息

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文件的差别在哪,弄透原因。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值