直接修改maven安装目录下的%maven_home%/conf/settings.xml文件,在146行 节点中添加如下代码:
bash <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
另一篇文章:https://blog.csdn.net/HeyWeCome/article/details/104543411