解决maven下载依赖慢的问题

增加aliyun的代理即可。

 

mac/windows:

1)先查到maven安装位置

2)然后打开conf

 

3)查找mirror关键字,增加下面的代码:

<mirror>
      <id>nexus-aliyun</id>
      <mirrorOf>central</mirrorOf>
      <name>Nexus aliyun</name>             
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>

 

posted @   jiduoduo  阅读(397)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· winform 绘制太阳,地球,月球 运作规律
· 上周热点回顾(3.3-3.9)
历史上的今天:
2021-04-10 UILabel.sizeThatFits
2020-04-10 [AppDelegate window]: unrecognized selector sent to instance 0x600002b178e0
点击右上角即可分享
微信分享提示