Maven报错(一)

报错:
Failure to transfer org.apache.commons:commons-parent:pom:47 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
处理:
分析问题:查阅资料后推测是包的问题。

1、找到maven的包的位置:G:\apache-maven-3.6.3\repository找到这个每个人当初设置的不同。 具体地址参考maven本地仓库

2、查看是哪个包的问题,例如:我的问题是G:\apache-maven-3.6.3\repository\org\apache\commons的commons-parent出了问题。

3、回到Eclipse右键项目选择Maven->Update Project…
原理:
Maven包出错,删了就好

发布了73 篇原创文章 · 获赞 20 · 访问量 4460

猜你喜欢

转载自blog.csdn.net/lzl980111/article/details/103715159