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.