IntelliJ 2017.2 停留在“新项目"的“加载原型列表"上`Maven` [英] IntelliJ 2017.2 stuck on `Loading archetype list` for `New Project` > `Maven`
问题描述
在启动 IntelliJ 2017.2 后选择 Create New Project
选项时,我在 Maven
标签上看到这个无休止的旋转轮,说正在加载原型列表...".>
有没有办法获得 Maven 原型?
等待
加载Maven的完整列表archetypes 似乎对 IntelliJ 来说是一项相当大的努力.令人惊讶,因为我不记得 NetBeans 有这么长时间的延迟.
请稍等,请耐心等待.可能需要几分钟.泡茶,拍拍狗.等待计算机上的风扇旋转,然后再次安静.
使用更多内存
我目前将 VM options for importer
设置为 -Xmx2048m
,如 Tonhofer 的回答.
我不知道这是否是关键,但我的问题已经敲木头"消失了.所以这可能会有所帮助.
仅供参考……我有一台运行 Sierra 10.12.6 的 16-gig MacBook Pro(Retina,15 英寸,2013 年末)和两个 Java 实现,来自 Oracle 的 Java 8 Update 144 和来自 OpenJDK 的 Java 9 beta jdk-9+181.
退出,更新仓库
虽然我不明白发生了什么,但似乎这对我来说是一种解决方法.
退出 IntelliJ,然后再次启动.
在 Preferences/Settings 中,转到 Build, Execution, Deployment
> Build Tools
> Maven
> Repositories
.单击列出的每个存储库,然后单击 Update
按钮.在更新期间会出现一个旋转轮.
每个存储库的数据的副本正在在本地机器上下载并解析,该存储库已知的所有库的描述.一些存储库可能非常大,有许多列出的项目.所以这个过程可能需要一段时间,可能超过几分钟.
更新完成后,再次尝试 New Project
功能.
When choosing the Create New Project
option after launching IntelliJ 2017.2, I get this endlessly spinning wheel on the Maven
tag, saying "Loading archetype list…".
Any way to get to a Maven archetype?
Wait
Loading the full list of Maven archetypes seems to be quite an exertion for IntelliJ. Surprising, as I don't recall any such long delays in NetBeans.
So wait, be patient. May take a couple minutes. Make tea, pat the dog. Wait for the fan on your computer to spin up and then quiet again.
Use more memory
I currently have VM options for importer
set to -Xmx2048m
as shown in the Answer by Tonhofer.
I do not know if this point was key, but my problem has gone away «knock-on-wood». So this might be helping.
FYI… I have a 16-gig MacBook Pro (Retina, 15-inch, Late 2013) running Sierra 10.12.6 with two Java implementations, Java 8 Update 144 from Oracle and Java 9 beta jdk-9+181 from OpenJDK.
Quit, update repositories
While I do not understand what all is going on, it seems like this has been a workaround for me.
Quit IntelliJ, then launch again.
In Preferences/Settings, go to Build, Execution, Deployment
> Build Tools
> Maven
> Repositories
. Click each of the listed repositories, and click the Update
button. A spinning wheel appears for the duration of the update.
A copy of each repository’s data is being downloaded and parsed on your local machine, descriptions of all the libraries known by that repository. Some of the repositories may be quite large with many listed projects. So this process may take a while, possibly more than several minutes.
When the updates are complete, try the New Project
feature again.
这篇关于IntelliJ 2017.2 停留在“新项目"的“加载原型列表"上`Maven`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!