阿里云镜像不能下载Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.8.R

it2023-06-26  79

项目放到我的笔记本上却报这个错,搞了好久,终于解决了。 Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.8.RELEASE fr。。。。。 下图是我的阿里云镜像,我的maven版本是3.5.3,idea是2020.2.3,JDK1.8。

<mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>https://maven.aliyun.com/repository/public</url> </mirror> </mirrors>

注意到了,镜像中的url是https,不是之前的http,然后点击clean和install还是不行,原因是https有限制。 继续配置idea 在下图两处添加下面这些即可:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

最新回复(0)