Intellij Idea Maven'无法重新连接'错误(Intellij Idea Maven 'cannot reconnect' error)

当我在Intellij Idea打开我的项目时,我遇到了一个奇怪的apache maven的问题
maven 无法导入依赖了 ,无论怎么reimport还是不能导入依赖.
终于在无限百度时找到了答案

Intellij Idea Maven'无法重新连接'错误(Intellij Idea Maven 'cannot reconnect' error)_第1张图片

 2020-4-10 21:38:24,585 [441715] INFO  - #org.jetbrains.idea.maven  - 无法重新连接。 
 java.lang.RuntimeException:无法重新连接。 
 at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:98)
 at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.resolveProject(MavenEmbedderWrapper.java:97) 
 at org.jetbrains.idea.maven.project.MavenProjectReader.resolveProject(MavenProjectReader.java:462)
 at org.jetbrains.idea.maven.project.MavenProject.resolve(MavenProject.java:624) 
 at org.jetbrains.idea.maven.project.MavenProjectsTree.resolve(MavenProjectsTree.java:1215)
 at org.jetbrains.idea.maven.project.MavenProjectsProcessorResolvingTask.perform(MavenProjectsProcessorResolvingTask.java:42) 
 at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:131)
 at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access $ 100(MavenProjectsProcessor.java:28 )
 at org.jetbrains.idea.maven.project.MavenProjectsProcessor $ 2.run(MavenProjectsProcessor.java:107)
 at org.j etbrains.idea.maven.utils.MavenUtil $ 6.run(MavenUtil.java:440)
 at com.intellij.openapi.application.impl.ApplicationImpl $ 8.run(ApplicationImpl.java:419)
 at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at java.util.concurrent。 ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java: 745)
 at com.intellij.openapi.application.impl.ApplicationImpl $ 1 $ 1.run(ApplicationImpl.java:149)
引起:java.rmi.ServerError:服务器线程发生错误;嵌套异常是:
 java.lang.NoClassDefFoundError:org / apache / commons / lang / StringUtils 
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:351)
 at sun .rmi.transport.Transport $ 1.run(Transport.java:200)
 at sun.rmi.transport.Transport $ 1.run(Transport.java:197)
 at java.security.AccessController.doPrivileged (原生方法)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
 at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run0(TCPTransport.java:826)
 at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.lambda $ run $ 254(TCPTransport.java:683 )
 at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler $$ Lambda $ 1 / 99407688.run(未知来源)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run(TCPTransport.java:682 )
 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)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
 at sun.rmi.transport.StreamRemoteCall.executeCall( StreamRemoteCall.java:252)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
 at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
 at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
 at com.sun.proxy。$ Proxy121.resolveProject(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (本机方法)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at com.intellij.execution.rmi.RemoteUtil $ 2 $ 1 $ 1.compute(RemoteUtil。 java:106)
 at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:167)
 at com.intellij.execution.rmi.RemoteUtil $ 2 $ 1.invoke(RemoteUtil.java: 102)com.sun.proxy上的
。$ Proxy121.resolveProject(未知来源)
 at org.jetbrains.idea.maven.server.MavenEmbedderWrapper $ 4.execute(MavenEmbedderWrapper.java:100)
 atg.jetbrains.idea.maven.server.MavenEmbedderWrapper $ 4.execute(MavenEmbedderWrapper.java:97)
 at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:89)
 ... 16更多
引起:java.lang.NoClassDefFoundError:org / apache / commons / lang / StringUtils 
 at org.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath( FileWagon.java:206)
 at org.apache.maven.wagon.providers.file.Fi leWagon.resourceExists(FileWagon.java:265)
 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector $ GetTask.run(WagonRepositoryConnector.java:577)
 at org.sonatype.aether.util。 concurrency.RunnableErrorForwarder $ 1.run(RunnableErrorForwarder.java:60)
 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) 
 2015-06-03 11:54:24,586 [441716] WARN  -  ution.rmi.RemoteProcessSupport - 线程pool-6-thread-1中的异常java.lang.NoClassDefFoundError:org / apache / commons / lang / StringUtils 
 2015-06-03 11:54:24,586 [441716] WARN  -  ution.rmi .RemoteProcessSupport  -  atg.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath(FileWagon.java:206)

解决方案
手动删除整个.m2 / repository文件夹,然后向上再次约会您的Maven项目。

你可能感兴趣的:(Intellij Idea Maven'无法重新连接'错误(Intellij Idea Maven 'cannot reconnect' error))