【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。
这时再次启动,成功。

猜你喜欢

转载自blog.csdn.net/s1441101265/article/details/112311197