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/

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM