Maven 配置阿里云镜像

1.先找到你电脑上安装的maven目录

2.找到 settings.xml 文件 【maven文件夹 > conf目录 > settings.xml 文件】

3.双击打开 settings.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>

4.到这里maven配置阿里云镜像就完成了,验证阿里云镜像是否配置成功 。

如果本文对你有所帮助,点个收藏加关注再走吧

猜你喜欢

转载自blog.csdn.net/qq_42825813/article/details/123100948