前言
git上拉了一个项目构建过程中无论是clean
还是install
都报错
注:很看不惯某博主一点简单的经验分享都要开VIP才能查看的作风
org.springframework.boot:spring-boot-starter-parent:pom:2.3.4.RELEASE failed to transfer from
https://maven.aliyun.com/repository/central during a previous attempt. This failure was cached in the local repository and
resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-
boot-starter-parent:pom:2.3.4.RELEASE from/to aliyunmaven (https://maven.aliyun.com/repository/central): transfer failed for https://maven.aliyun.com/repository/central/org/springframework/boot/spring-boot-starter-parent/2.3.4.RELEASE/spring-boot-starter-parent-2.3.4.RELEASE.pom
1、忽略证书
按照网上说的加证书忽略 重启 依然没用
参考文章
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
重新加载也没用
二、加代理
settings.xml 加代理;有可能是自己电脑开启了蒲公英或者EasyConnect等软件导致无法连接上远端仓库,重启,还是没用
<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
三、网络
前两者试完,发现没啥作用,不删除配置(也能删),直接手机开启热点电脑连接,好了,真是离谱的体验;