简体   繁体   English

无法连接到 Maven 进程。 稍后再试。 如果问题仍然存在,请检查 Maven Importing JDK settings 并重新启动 IntelliJ IDEA

[英]Cannot connect to the Maven process. Try again later. If the problem persists, check the Maven Importing JDK settings and restart IntelliJ IDEA

I'm trying to add a new dependency in pom.xml in IntelliJ IDEA.我正在尝试在 IntelliJ IDEA 的 pom.xml 中添加新的依赖项。 After updating the pom.xml file, I right-clicked the file and selected: Maven-> Reload project更新完pom.xml文件后,我右键文件选择:Maven->Reload project

Then it shows many errors in the Build->Sync tab:然后它在 Build->Sync 选项卡中显示了许多错误:

Cannot connect to the Maven process.无法连接到 Maven 进程。 Try again later.稍后再试。 If the problem persists, check the Maven Importing JDK settings and restart IntelliJ IDEA如果问题仍然存在,请检查 Maven Importing JDK settings 并重新启动 IntelliJ IDEA

Does anyone know how to fix this error?有谁知道如何解决这个错误? I tried restarting Intellij but didn't help.我尝试重新启动 Intellij 但没有帮助。

maybe is your hosts problem, you can edit the hosts file to可能是您的主机问题,您可以将主机文件编辑为

127.0.0.1 localhost 127.0.0.1 本地主机

see here .这里
it works to me.它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Selenium Webdriver从Maven导入到Intellij IDEA - Importing Selenium Webdriver from Maven to Intellij IDEA Intellij IDEA 2019.3、JDK 11.0.3 中的 Maven java 项目:无法解析符号“java”但仍可编译 - Maven java project in Intellij IDEA 2019.3, JDK 11.0.3: Cannot resolve symbol 'java' but still compile Intellij Idea Maven '无法重新连接' 错误 - Intellij Idea Maven 'cannot reconnect' error IntelliJ + Maven 阴影:发生 JNI 错误,请检查您的安装并重试 - IntelliJ + Maven Shade: A JNI error has occurred, please check your installation and try again Intellij IDEA - Maven无法正常工作 - Intellij IDEA - Maven not working 使用 maven 3.8.5 在 intellij Idea 中导入 Springboot 2.7 项目时出错 - Error while importing Springboot 2.7 projects in intellij Idea with maven 3.8.5 如何使用 Maven 在纯 Java 项目中尝试 Dagger 2 - intellij IDEA - How to try Dagger 2 with pure java Project using Maven - intellij IDEA 另一个 Maven “不再支持源选项 6。使用 7 或更高版本。” - Another Maven "Source option 6 is no longer supported. Use 7 or later." 如何在Intellij Idea中看到maven check style插件报告? - How see maven check style plugin reports in Intellij Idea? IntelliJ IDEA 中的 Maven 依赖项“无法解析符号 VectorAssembler” - Maven dependency “Cannot resolve symbol VectorAssembler'” in IntelliJ IDEA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM