IDEA中maven项目依赖的包下载过慢——阿里云解决办法
程序员文章站
2022-06-05 17:28:25
...
在IDEA安装目录下找到setting.xml
比如:IDEA ..\plugins\maven\lib\maven2\conf
找到相应的地方mirrors,添加以下内容:
<mirrors>
<!--此处文本自带注释内容就不显示了 -->
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<!--This is used to direct the public snapshots repo in the
profile below over to a different nexus group -->
<id>nexus-public-snapshots</id>
<mirrorOf>public-snapshots</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
</mirror>
</mirrors>
上一篇: Python网络爬虫之-HTTP协议原理
下一篇: python爬虫 - 爬虫原理