gpt4 book ai didi

java - 找到非托管 pom.xml 文件(无法在 IntelliJ 中导入 Maven 项目)

转载 作者:行者123 更新时间:2023-12-02 11:52:07 25 4
gpt4 key购买 nike

我无法在 IntelliJ 中导入我的 Maven 项目。该项目有 pom.xml 文件,但 IntelliJ 未加载它。检查下面的日志:

Caused by: java.lang.RuntimeException: Cannot reconnect
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Operation timed out (Connection timed out)
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Operation timed out (Connection timed out)
Caused by: java.net.ConnectException: Operation timed out (Connection timed out)

最佳答案

我只将下面的 block 保留在 etc/hosts 中并且有效:

127.0.0.1 localhost

关于java - 找到非托管 pom.xml 文件(无法在 IntelliJ 中导入 Maven 项目),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47819535/

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