IntelliJ IDEA – Cannot connect to the Maven process

In the IntelliJ IDEA, clicks on the download sources, and it shows the error Cannot connect to the Maven process.

Terminal

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

Tested with


  IntelliJ IDEA 2022.2.1 (Community Edition)
  Build #IC-222.3739.54, built on August 16, 2022

Solution

To fix it, we switch from the default "Bundled Maven 3" option to the manually installed Maven path.

In IntelliJ IDEA, click Preferences, Build Tools -> Maven

Bundled Maven 3

Change to other Maven installed path.

maven installation

References

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

5 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Mike
3 years ago

This does not fix it.

Zhang's
3 years ago

Still not work, after OS wake up, IntelliJ IDEA 2022.3 (Community Edition).

haichao
3 years ago
Reply to  Zhang's

did you find the way to solve the proplem?

haichao
3 years ago
Reply to  Zhang's

me too

Tavi
3 years ago

This does not fix the issue. But what fixes the issue is what intellij suggest. Restart.

Last edited 3 years ago by Tavi