当前位置: 首页 > 后端技术 > Java

IDEA用自带的Maven修改仓库

时间:2023-04-01 14:11:41 Java

IDEA自带的Maven下载速度慢。通过修改Maven配置文件settings.xml改为国内仓库。先将settings.xml复制到IDEA根目录IntelliJIDEA20xx.x\plugins\maven\lib\maven3\conf中的C:\Users\username\.m2settings.xml中,然后在settings中添加一个标签。xmlalimavenaliyunmavenhttp://maven.aliyun.com/nexus/content/groups/public/central最后修改IDEA中默认的Maven配置文件