BobbKitty729
BobbKitty729

Reputation: 367

In IntelliJ, Maven can't resolve dependencies

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.

Upvotes: 0

Views: 10677

Answers (2)

Kunal Vohra
Kunal Vohra

Reputation: 2836

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).

Upvotes: 2

JUAN CALVOPINA M
JUAN CALVOPINA M

Reputation: 3955

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

Upvotes: 2

Related Questions