Maven仓库设置为国内镜像源
参考博客 https://blog.csdn.net/liangyihuai/article/details/57406870
如何获取maven设置文件的位置?
以使用IDEA开发为例:打开IntelliJ IDEA->Settings ->Build, Execution, Deployment -> Build Tools > Maven
找到User settings file:
栏,文本框中即为地址,一般情况下在c:\Users\xx.m2\这个目录下面没有settings.xml文件,可以新建一个settings.xml
文件,写入:
设置阿里镜像源
1 | <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" |
华为镜像源(未尝试)
1 | <mirror> |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.