maven加载报错:Unable to reload Maven project

tech2024-08-16  50

2020-09-03 19:11:01,123 [9336900] ERROR - #org.jetbrains.idea.maven - Cannot reconnect. 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:445) at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles(MavenProjectReader.java:385) at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:94) at org.jetbrains.idea.maven.project.MavenProjectReader.readProject(MavenProjectReader.java:53) at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:684) at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:544) at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:454) at org.jetbrains.idea.maven.project.MavenProjectsTree.updateAll(MavenProjectsTree.java:422) at org.jetbrains.idea.maven.project.MavenProjectsProcessorReadingTask.perform(MavenProjectsProcessorReadingTask.java:61) at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:141) at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:35) at org.jetbrains.idea.maven.project.MavenProjectsProcessor$1.run(MavenProjectsProcessor.java:110) at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:488) 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:255) 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.lang.Thread.run(Thread.java:834) 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:182) at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:83) at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41) at org.jetbrains.idea.maven.server.MavenServerManager.lambda$applyProfiles$8(MavenServerManager.java:445) 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:146) at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:170) ... 24 more

git克隆的项目,发现有的依赖包缺少

更新maven时报错Unable to reload Maven project,具体日志如上

网上试了好多方法都没有用,之后看到一个方法死马当活马医,然后成了。。。。。

也不知道为什么

参数改了就行,一开始为了优化,设定的2048m

 

参考自:https://ranying666.github.io/2020/02/11/idea-maven-error/

最新回复(0)