Springboot下载依赖速度慢

原因:maven默认使用国外远程仓库来加载依赖,导致下载速度过慢甚至失败。

解决方案:使用阿里云镜像。

在setting.xml中添加:

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

重启idea并reload maven。

posted @ 2023-03-09 14:34  笨拙的向前  阅读(1066)  评论(0)    收藏  举报