【springcloud】resolution will not be reattempted until the update interval of nexus has elapsed or up

前言

错误信息:

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.basic.server:sds-basic-server-common:1.0-SNAPSHOT (D:\Workspace_idea\个人-可以提交到码云的项目\系列-sds\sds-basic-server\sds-basic-server-common\pom.xml) has 1 error
[ERROR]     Non-resolvable import POM: Failure to find org.apache.logging.log4j:log4j-bom:pom:2.2.7.RELEASE in http://127.0.0.1:8081/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced @ org.springframework.boot:spring-boot-dependencies:2.2.7.RELEASE, D:\Program Files\Apache-maven-3.6.0\My_repository\org\springframework\boot\spring-boot-dependencies\2.2.7.RELEASE\spring-boot-dependencies-2.2.7.RELEASE.pom, line 1803, column 19 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

解决办法

尝试去https://mvnrepository.com/下载,但是发现全部都下载不下来
然后后面看到这篇文章:https://blog.csdn.net/weixin_38361347/article/details/86377819,也是一样的思路。
后来尝试把依赖直接放入项目(可以放在springcloud依赖下面,放一块),发现它和spring cloud是一样的类型:type=pom。
这时再次启动,成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值