本文最后更新于 2024-08-29,文章内容可能已经过时。

无论是IDEA自带的Maven仓库还是下载好的Maven,只需要找到settings.xml 找到标签加入下面代码即可

<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>aliyun maven</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>

maven-repo