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

Viewed 1096

I'm trying to add a new dependency in pom.xml in IntelliJ IDEA. After updating the pom.xml file, I right-clicked the file and selected: Maven-> Reload project

Then it shows many errors in the Build->Sync tab:

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

Does anyone know how to fix this error? I tried restarting Intellij but didn't help.

1 Answers

maybe is your hosts problem, you can edit the hosts file to

127.0.0.1 localhost

see here.
it works to me.

Related