在pom.xml中添加maven 依赖包时,我就发现不管是否用了翻墙,下载速度都好慢,就1M的东西能下半天,很是苦恼,于是到网上搜资料,然后让我查到了。说是使用阿里的maven镜像就可以了。我于是亲自试了下,速度快的飞起!!!
操作步骤:
1、右键项目选中maven选项,然后选择“open settings.xml”或者 “create settings.xml”
2、然后把如下代码粘贴进去就可以了。重启IDE,感受速度飞起来的感觉吧!!!
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
uk
central
Human Readable Name for this Mirror.
http://uk.maven.org/maven2/
CN
OSChina Central
http://maven.oschina.net/content/groups/public/
central
nexus
internal nexus repository
http://repo.maven.apache.org/maven2
central
重启之后点击重新构建导入 参考:https://blog.csdn.net/qq_25305833/article/details/100944494