问题:could not find artifact org.springfarmework.cloud:spring-cloud-dependencies:pom:Hoxton.SR10 in alimaven (http://maven.aliyun.com/nexus/content/groups/public)
1在maven的conf文件夹中settings文件中配置阿里云镜像文章来源:https://www.toymoban.com/news/detail-605634.html
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<!-- <url>http://maven.aliyun.com/nexus/content/groups/public/</url> -->
<url>https://maven.aliyun.com/repository/public</url>
<mirrorOf>Maven</mirrorOf>
</mirror>
2在pom文件中加入以下代码文章来源地址https://www.toymoban.com/news/detail-605634.html
<repositories>
<repository>
<id>aliyun</id>
<name>aliyun-maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://maven.aliyun.com/repository/spring</url>
</repository>
<repository>
<id>central</id>
<name>maven-central</name>
<url>http://central.maven.org/maven2/</url>
</repository>
<repository>
<id>spring-snapshots</id>
<url>https://repo.spring.io/libs-snapshot</url>
</repository>
</repositories>
到了这里,关于spring-cloud依赖下载失败踩坑的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!