我无法看到maven原型("正在加载原型列表...")的列表,也无法在Intellij IDEA 2016.3.4中导入现有的maven项目。我尝试了以下几种方法:
- 为maven JVM提供更多内存
- 清除"导入器的VM选项"设置
- 在集成和外部maven目录之间切换
- 在maven使用的JDK之间切换
- 使IDEA缓存失效
- 删除 .m2 目录
- 在 hosts 中添加 "127.0.0.0 localhost" 行
但是没有一个有效。这里是IDEA日志文件的一部分:
ERROR - plication.impl.ApplicationImpl - Cannot reconnect.
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper. java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getArchetypes(MavenIndexerWr apper.java:175)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getArchetypes(MavenIndicesM anager.java:310)
at org.jetbrains.idea.maven.wizards.MavenArchetypesStep.lambda$updateArchetypesList $2(MavenArchetypesStep.java:237)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java :309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
com.intellij.execution.ExecutionException:
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:173)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:78)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$4.create(MavenServerManager.java:527)
at org.jetbrains.idea.maven.server.MavenServerManager$4.create(MavenServerManager.java:523)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.java:178)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper$7.execute(MavenIndexerWrapper.java:175)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 9 more
Caused by: com.intellij.execution.ExecutionException:
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:159)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:170)
... 17 more
2017-02-05 14:27:24,061 [ 123449] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2016.3.4 Build #IU-163.12024.16
2017-02-05 14:27:24,061 [ 123449] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_121
2017-02-05 14:27:24,061 [ 123449] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
2017-02-05 14:27:24,061 [ 123449] ERROR - plication.impl.ApplicationImpl - Vendor: Oracle Corporation
2017-02-05 14:27:24,061 [ 123449] ERROR - plication.impl.ApplicationImpl - OS: Windows 10
2017-02-05 14:27:24,061 [ 123449] ERROR - plication.impl.ApplicationImpl - Last Action: NewProject
2017-02-05 14:27:30,668 [ 130056] INFO - ide.actions.ShowFilePathAction -
Exit code 1
有人遇到过同样的问题吗?