解决本地Maven仓库无法下载Jar或下载失败的情况
程序员文章站
2022-06-05 17:29:19
...
在搭建Spring cloud框架中,有些Jar无法下载的情况处理
1. 网上查询 https://mvnrepository.com/ 查看maven引用是否正确
2. 解决方法如下:
方法一:使用命令加入本地仓库,请参考我的博客:
https://blog.csdn.net/u012547633/article/details/51647155
方法二: 引用阿里云的镜像,配置maven 的 setting.xml
加入如下内容
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus Aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
然后下载超快.......
上一篇: 数据结构——链式栈
下一篇: maven配置阿里云镜像
推荐阅读
-
解决maven无法下载依赖的jar包的问题
-
maven03_私服的安装启动、maven上传下载配置、安装第三方jar包到本地仓库、第三方jar安装到私服
-
解决本地Maven仓库无法下载Jar或下载失败的情况
-
2020 年最新:Maven无法使用阿里云仓库下载,以及无法compile的解决方法
-
关于maven项目中*仓库无法下载jar包,需要手动导入jar包的的问题
-
将下载好的jar安装至本地maven仓库
-
解决maven无法下载依赖的jar包的问题
-
IDEA中已配置阿里镜像但maven无法下载jar包的问题及解决方法
-
如何解决maven无法下载依赖的jar包(示例讲解)
-
如何解决maven无法下载依赖的jar包(示例讲解)