修改Intelij IDEA的maven下载地址为国内阿里云镜像

1、win7环境,默认情况下在用户目录的.m2下自己新建setting文件。

.m2\settings.xml

2、settings.xml文件内容为:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0

                          https://maven.apache.org/xsd/settings-1.0.0.xsd">

      <mirrors>

        <mirror> 

            <id>alimaven</id> 

            <name>aliyun maven</name> 

            <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 

            <mirrorOf>central</mirrorOf>         

        </mirror> 

      </mirrors>

</settings>

 3、修改配置

这里写图片描述

注意,需要点击上图所示右下角的override。

发布了176 篇原创文章 · 获赞 123 · 访问量 70万+

猜你喜欢

转载自blog.csdn.net/shixin_0125/article/details/105069731
今日推荐