idea maven下载依赖失败
程序员文章站
2022-05-04 07:49:28
...
问题:maven下载依赖失败
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java:38)
at org.jetbrains.idea.maven.project.MavenProjectResolver.downloadSourcesAndJavadocs(MavenProjectResolver.java:253)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorArtifactsDownloadingTask.perform(MavenProjectsProcessorArtifactsDownloadingTask.java:40)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:146)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor$1.run(MavenProjectsProcessor.java:115)
at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:518)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:270)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
解决方法:
maven的import设置成本地的1.8版本。而非idea的内部jdk。
上一篇: SVGAPlayer-Web
下一篇: SVGAPlayer-Flutter
推荐阅读
-
使用IDEA的maven工程导入ojdbc14 jar包失败
-
maven添加oracle依赖失败问题的处理方法
-
IDEA下Maven的pom文件导入依赖出现Auto build completed with errors的问题
-
使用IDEA创建springboot依赖下载很慢,解决方法
-
Java全栈程序员之06:IDEA中MAVEN项目依赖及运行
-
解决问题--Maven,IDEA项目External Libraries下只有jdk没有maven依赖
-
2020最新-Maven的下载以及idea配置Maven
-
IDEA中创建maven项目引入相关依赖无法下载jar问题及解决方案
-
解决IDEA中Maven依赖包导入失败报红问题(总结最有效8种解决方案)
-
IDEA中的maven依赖爆红的解决办法