Intellij maven imports have broken classpath

I've had this issue in IntelliJ IDEA 2017 Ultimate.

After changing dependency versions, the IDE was unable to fix the path on its own. I went to my ~/.m2 directory and deleted all of the dependencies for the problem jar and then executed the "ReImport All Maven Projects" action. When it was complete, the dependency issue was resolved.


I had this problem with the Community version of IntelliJ Community edition. I was able to solve the problem using this process:

  1. Click "Help" menu
  2. Click "Find Action" and type "Maven Settings."
  3. Click "Maven Settings."
  4. Click the arrow next to "Maven" on the left hand side, to see the submenu
  5. Click "Importing"
  6. Check "Import Maven Projects automatically" and click "OK."

Partial screen shot of "Maven Settings" screen

This should pull in all of the Maven dependencies from the pom.xml file, without you needing to manually add the libraries.

I hope this helps.