IDEA新建项目一直卡住Resolving maven dependencies of xxx
解决办法一:修改镜像
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
解决办法二:修改maven,VM options参数
Build,Execution,Deployment------------Build Tools-------Maven-------Runner
在VM Options框中写入以下代码:
-DarchetypeCatalog=internal
最后 Apply—OK 到这最好把IDEA彻底关闭一下,从新打开。
解决办法三:修改使用的内存大小。
修改VM options for importing 参数: -Xmx 1024m
-Xmx Java Heap最大值,默认值为物理内存的1/4
解决办法四: 取巧的办法。
重启IDE,maven 那个地方刷新一下,一闪而过的Background Tasks。