gpt4 book ai didi

java - Intellij IDEA - Maven 不工作

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:51:14 25 4
gpt4 key购买 nike

我无法在 Intellij IDEA 2016.3.4 中看到 Maven 原型(prototype)列表(“正在加载原型(prototype)列表...”)或导入现有的 Maven 项目。我尝试了几件事:

  • 为 maven JVM 提供更多内存
  • 清除“导入程序的 VM 选项”设置
  • 在捆绑和外部 maven 目录之间切换
  • 在 Maven 使用的 JDK 之间切换
  • 使 IDEA 缓存失效
  • 正在删除 .m2 目录
  • 在主机中添加“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

有人遇到过同样的问题吗?

最佳答案

Nvidia Geforce 378.57 Hot Fix Drivers :

  • 修复了 Minecraft 和其他一些基于 Java 的游戏的崩溃

有许多关于 IntelliJ IDEA、Maven 和用户应用程序因 Nvidia 驱动程序 378.49 而崩溃的报告。如果您的问题也是由此驱动程序更新引起的,那么降级到以前的版本或从上面的链接安装修补程序应该会有所帮助。

如果以上不适用于您的系统,please contact JetBrains support .

关于java - Intellij IDEA - Maven 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42051568/

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