Java----如何解决下载依赖包失败问题

注:

1,工具idea,版本2020

2,maven仓库:https://mvnrepository.com/

错误信息:

Could not transfer artifact org.apache.httpcomponents:httpcomponents-parent:pom:10 from/to central (https://repo.maven.apache.org/maven2):

GET request of: org/apache/httpcomponents/httpcomponents-parent/10/httpcomponents-parent-10.pom from central failed

上面说的大概意思是从中央仓库org/apache/httpcomponents/httpcomponents-parent/10/httpcomponents-parent-10.pom这个文件下载失败了。

 

解决:根据提供的链接地址--https://repo.maven.apache.org/maven2

 

 

 

 

按照目录一级一级向下(org/apache/httpcomponents/httpcomponents-parent/10/),找到httpcomponents-parent-10.pom并下载下来,

放在本地仓库/.m2/repository/org/apache/httpcomponents/httpcomponents-parent/10/

-----------------------------------------------------------------

 

posted @ 2020-07-29 21:26  菖蒲依依  阅读(1357)  评论(0编辑  收藏  举报