0
点赞
收藏
分享

微信扫一扫

Maven配置阿里镜像仓库


场景

原Maven仓库地址:

​​https://repo1.maven.org/maven2/​​

Maven配置阿里镜像仓库_maven

国内阿里镜像

​​http://maven.aliyun.com/nexus/content/groups/public/​​

​​http://maven.aliyun.com/mvn/view​​

Maven配置阿里镜像仓库_maven_02

Maven配置阿里镜像仓库_maven_03

配置

1.打开Maven目录下的conf下的setting.xml

Maven配置阿里镜像仓库_maven_04

2.使用EditPlus等打开,找到<mirrors>标签,然后添加:

<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

Maven配置阿里镜像仓库_xml_05

举报

相关推荐

0 条评论