【问题标题】:IntelliJ IDEA 15 not able to import maven projectsIntelliJ IDEA 15 无法导入 Maven 项目
【发布时间】:2016-01-28 04:16:27
【问题描述】:

以下是我的 IDEA 日志文件中的一些消息。它似乎无法连接到本地主机上的某些 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,但我仍然看到同样的问题

【问题讨论】:

标签: java maven intellij-idea


【解决方案1】:

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

127.0.0.1       localhost

【讨论】:

    猜你喜欢
    • 2012-09-23
    • 2016-07-28
    • 2020-01-10
    • 1970-01-01
    • 2014-09-16
    • 1970-01-01
    • 2016-02-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多