daimi2259
daimi2259
采纳率0%
2017-10-27 05:59 阅读 7.9k

IDEA 的maven出错 Unable to import maven project

maven也自己下了,配置也都照着网上配了,环境变量什么的都弄了,IDEA的maven也照着网上配了

这是错误日志

java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenServerManager.applyProfiles(MavenServerManager.java:550)
at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles(MavenProjectReader.java:397)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:103)
at org.jetbrains.idea.maven.project.MavenProjectReader.readProject(MavenProjectReader.java:62)
at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:639)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:554)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doAdd(MavenProjectsTree.java:499)
at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:460)
at org.jetbrains.idea.maven.project.MavenProjectsTree.updateAll(MavenProjectsTree.java:431)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorReadingTask.perform(MavenProjectsProcessorReadingTask.java:60)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:132)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:107)
at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:460)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:330)
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:175)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:80)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$7.execute(MavenServerManager.java:553)
at org.jetbrains.idea.maven.server.MavenServerManager$7.execute(MavenServerManager.java:550)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 20 more
Caused by: com.intellij.execution.ExecutionException:
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:166)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:172)
... 25 more
2017-10-27 13:52:43,319 [ 628599] ERROR - #org.jetbrains.idea.maven - IntelliJ IDEA 2017.2.5 Build #IU-172.4343.14
2017-10-27 13:52:43,319 [ 628599] ERROR - #org.jetbrains.idea.maven - JDK: 1.8.0_152-release
2017-10-27 13:52:43,319 [ 628599] ERROR - #org.jetbrains.idea.maven - VM: OpenJDK 64-Bit Server VM
2017-10-27 13:52:43,319 [ 628599] ERROR - #org.jetbrains.idea.maven - Vendor: JetBrains s.r.o
2017-10-27 13:52:43,319 [ 628599] ERROR - #org.jetbrains.idea.maven - OS: Windows 10
2017-10-27 13:52:43,319 [ 628599] ERROR - #org.jetbrains.idea.maven - Last Action: ShowSettings

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • mj200961 mj200961 2017-10-27 06:58

    try to delete .m2 repository entirely then update your maven project again

    点赞 2 评论 复制链接分享

相关推荐