Maven更换阿里云仓库

首先我们找到Maven的setting.xml文件,在我们的conf文件夹中

我们同时按下CTRL+F,搜索mirrors

在这里插入图片描述

添加下面代码即可

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

如图
在这里插入图片描述

发布了41 篇原创文章 · 获赞 28 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/weixin_44519467/article/details/104176156