gpt4 book ai didi

maven - IntelliJ 卡住 "Scanning Maven Projects"

转载 作者:行者123 更新时间:2023-12-03 16:23:11 29 4
gpt4 key购买 nike

我刚刚安装了 IntelliJ 社区版。当我尝试导入 Maven 项目时,它卡在步骤“扫描 Maven 项目”上并说它的读数为“.../pom.xml”。它在这里保持大约 10 分钟,退出此窗口,然后根本不导入项目。

其他一些帖子建议设置/etc/hosts 文件,但我的已经设置了 127.0.0.1 localhost。我已经在 IntelliJ 和我的 .m2/settings.xml 文件中设置了代理信息。

关于如何让 IntelliJ 只是打开我的项目的任何建议?

最好的事物,
可人

最佳答案

已经在这里回答 unable to import maven project into Intellij Idea :looking for available profile

The solution was to edit the /etc/hosts file and add at the first line:

127.0.0.1 localhost localhost



此外,请确保 localhost 仅映射一次。

(在评论中回答。我只是留下这个答案以供引用,因为它是 Google 在搜索此问题时的第一个结果之一)

关于maven - IntelliJ 卡住 "Scanning Maven Projects",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39620827/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com