Intellij IDEA Forge设置错误

Eti*_*lin 8 intellij-idea maven minecraft minecraft-forge

我想切换到IntelliJ for forge modding(minecraft).当我做他们在网上做的事情时,我得到了一个maven错误......

            Unindexed remote maven repositories found. Disable...
            The following repositories used in your gradle projects were not indexed yet: 
            http://files.minecraftforge.net/maven
            If you want to use dependency completion for these repositories artifacts,
            Open Repositories List, select required repositories and press "Update" button
Run Code Online (Sandbox Code Playgroud)

当我点击更新,它加载半秒然后再次给出相同的错误...我在互联网上搜索,没有人似乎有我的问题...请帮助吗?

Cra*_*der 9

检查idea.log是否有错误.它可能会因OutOfMemory错误而失败,在这种情况下,您可以尝试增加Maven Importer(导入程序的 VM选项)和IDE堆大小的堆大小.

-Xmx如果您在32位JVM(默认)上运行,请尽量不要超过750-1024m ,否则可能会崩溃或无法启动.

如果需要使用更多堆,请切换到64位Java,并在IntelliJ IDEA设置中为Maven(导入程序的JDK)指定相同的64位JVM.

另一种可能的情况是IDE无法连接到Maven进程.在某些系统上,需要编辑hosts文件以便localhost 正确解析.

还有一个由Nvidia驱动程序引起错误(java进程崩溃).如果这适用于您的硬件,请确保您拥有最新的驱动程序.

如果以上所有方法都没有帮助,请共享您的idea.log文件.

请注意,使用项目不需要索引存储库,但它可能表明Maven因上述原因之一(或其他原因)无法工作.查看项目的依赖项是否已导入,以及是否可以在IDEA中构建导入的项目.

有些存储库根本无法编入索引,在这种情况下只需忽略错误.