idea 下载maven 依赖过慢

1.在C:\Users\jacky\.m2\settings.xml中新建settings.xml

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          https://maven.apache.org/xsd/settings-1.0.0.xsd">
 
      <mirrors>
        <mirror> 
            <id>alimaven</id> 
            <name>aliyun maven</name> 
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
            <mirrorOf>central</mirrorOf>         
        </mirror> 
      </mirrors>
</settings>

2. File->Settings->Build,Excetion,Deployment->Build Tools->Maven

 如下设置:

发布了71 篇原创文章 · 获赞 1 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/ccr1001ccr1001/article/details/104119349
今日推荐