idea 更换maven的镜像为阿里镜像源

1、打开setting.xml配置文件

如果创建项目使用默认的maven则没有setting.xml,需要手动创建一个

2、修改配置文件settings.xml

在其中添加如下代码:

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

猜你喜欢

转载自blog.csdn.net/weixin_45813351/article/details/130914964
今日推荐