idea 的settings分为当前项目设置和新建项目设置两个部分,注意一些设置这两个地方都要调整。
下面的步骤 修改好settings后,new projects 里的settings也要同样方法进行修改
Maven中央仓库默认使用的是国外的,而国外访问速度很慢,通常会出现下载失败的问题,我们就可以通过修改默认的中央仓库,使用国内的如阿里云即可解决这个问题
settings中搜索maven即可
打开settings 按照图中指示修改即可
直接复制这里即可(国内仓库已经配置):
alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central uk central Human Readable Name for this Mirror. http://uk.maven.org/maven2/ CN OSChina Central http://maven.oschina.net/content/groups/public/ central nexus internal nexus repository http://repo.maven.apache.org/maven2 central
————————————————
版权声明:本文为CSDN博主「Specif1c」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/haduwi/article/details/109698190
nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public
前提是第一步配置好国内源OK了,但还是有问题
更换网络
重复执行上述两步