0

Right now, I get errors on the dependencies shown in Maven.

I've tried the things listed here Intellij idea cannot resolve anything in maven such as changing my Maven Home Directory and Selecting Import Maven automatically. I'm not sure what else it could be... Also, the project was initially done in Eclipse.

BobbKitty729
  • 327
  • 1
  • 6
  • 13
  • Please see https://stackoverflow.com/a/42427510/104891. [idea.log](https://intellij-support.jetbrains.com/hc/articles/207241085) will have more details about the issue. – CrazyCoder May 30 '20 at 02:56
  • After update the version of some dependencies in pom.xml every import was red. This helped me https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003445760/comments/360000452859 – TomasMolina Nov 12 '21 at 16:21

2 Answers2

2

You can try to force the downloading of dependencies with this command:

mvn clean install -U

Or you can press Ctrl+Shift+A (win/linux) or Command+shift+A (mac) to find actions, type "reimport" and choose "Reimport All Maven Projects".

From the UI:

enter image description here

JUAN CALVOPINA M
  • 3,695
  • 2
  • 21
  • 37
1

If you are done with mvn clean install, just click this icon.

enter image description here

If in rare case you still face the issue type command mvn -U idea:idea (its deprecated but will do the job).

Kunal Vohra
  • 2,703
  • 2
  • 15
  • 33