IntelliJ IDEA 15无法导入maven项目

时间:2016-01-28 04:16:27

标签: java maven intellij-idea

以下是我的IDEA日志文件中的一些消息。它似乎无法连接到localhost上的某些maven服务。以前这对我来说效果很好14。

classworlds-2.5.1.jar" org.jetbrains.idea.maven.server.RemoteMavenServer 
2016-01-27 20:03:44,054 [ 318261]   INFO - ution.rmi.RemoteProcessSupport - Port/ID: 44435/Maven32ServerImplaa933e0f 
2016-01-27 20:04:59,912 [ 394119]   WARN - ution.rmi.RemoteProcessSupport - The cook failed to start due to java.net.ConnectException: Operation timed out 
2016-01-27 20:05:44,776 [ 438983]   WARN - ution.rmi.RemoteProcessSupport - java.rmi.NotBoundException: _DEAD_HAND_ 
2016-01-27 20:05:44,776 [ 438983]   WARN - ution.rmi.RemoteProcessSupport - at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:166) 
2016-01-27 20:05:44,776 [ 438983]   WARN - ution.rmi.RemoteProcessSupport - at com.intellij.execution.rmi.RemoteServer.start(RemoteServer.java:88) 
2016-01-27 20:05:44,776 [ 438983]   WARN - ution.rmi.RemoteProcessSupport - at org.jetbrains.idea.maven.server.RemoteMavenServer.main(RemoteMavenServer.java:22) 
2016-01-27 20:06:15,111 [ 469318]   WARN -      #org.jetbrains.idea.maven - Cannot open index /Users/xxxxx/Library/Caches/IdeaIC15/Maven/Indices/Index0 
org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index /Users/xxxxx/Library/Caches/IdeaIC15/Maven/Indices/Index0

更新 - 1

发现此错误报告 - > https://youtrack.jetbrains.com/issue/IDEA-147234说我们应该将maven升级到至少3.3.3我做了但我仍然看到同样的问题

1 个答案:

答案 0 :(得分:0)

看起来它与@ etc / hosts相关,如@MoizRaja所述。我建议尝试评论/ etc / hosts中的所有内容,然后离开

127.0.0.1       localhost