Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 找到非托管pom.xml文件(无法在IntelliJ中导入maven项目)_Java_Maven_Intellij Idea - Fatal编程技术网

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

Java 找到非托管pom.xml文件(无法在IntelliJ中导入maven项目),java,maven,intellij-idea,Java,Maven,Intellij Idea,我无法在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

我无法在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)

我在etc/hosts中只保留了下面的块,这很有效:

127.0.0.1 localhost

看,这是关于记忆的。我想我的问题是关于网络,但是谢谢你的建议!看见