SpringBoot项目的pom.xml中添加依赖,提示如下图,See logs for details,错误信息如下

发布于 2022-09-11 22:17:10 字数 3352 浏览 14 评论 0

clipboard.png
2019-09-09 19:14:30,555 [3957442] WARN - ution.rmi.RemoteProcessSupport - 错误: 找不到或无法加载主类 ?-Xmx1024m
2019-09-09 19:14:30,742 [3957629] WARN - ution.rmi.RemoteProcessSupport - 错误: 找不到或无法加载主类 ?-Xmx1024m
2019-09-09 19:14:30,742 [3957629] WARN - ution.rmi.RemoteProcessSupport -
2019-09-09 19:14:30,758 [3957645] 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:404)
at org.jetbrains.idea.maven.project.MavenProjectReader.applyProfiles(MavenProjectReader.java:399)
at org.jetbrains.idea.maven.project.MavenProjectReader.doReadProjectModel(MavenProjectReader.java:108)
at org.jetbrains.idea.maven.project.MavenProjectReader.readProject(MavenProjectReader.java:67)
at org.jetbrains.idea.maven.project.MavenProject.read(MavenProject.java:665)
at org.jetbrains.idea.maven.project.MavenProjectsTree.doUpdate(MavenProjectsTree.java:555)
at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:464)
at org.jetbrains.idea.maven.project.MavenProjectsTree.update(MavenProjectsTree.java:443)
at org.jetbrains.idea.maven.project.MavenProjectsProcessorReadingTask.perform(MavenProjectsProcessorReadingTask.java:65)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:135)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:109)
at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:458)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:

com.intellij.execution.ExecutionException: 错误: 找不到或无法加载主类 ?-Xmx1024m

at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:169)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:74)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager.lambda$applyProfiles$3(MavenServerManager.java:404)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 19 more

Caused by: com.intellij.execution.ExecutionException: 错误: 找不到或无法加载主类 ?-Xmx1024m

at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:144)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:166)
... 23 more### 问题描述

请问这个怎么解决啊?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文