Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Intellij do not find any Maven dependencies in pom.xml?

I just downloaded Intellij on a laptop and I imported a Maven project and the problem is that Intellij do not found any dependency in pom.xml. For example if I try to import hibernate-core or any other dependency I get the error: Dependency org.hibernate-core... not found. What should I do? Any feedback will be appreciated.

like image 389
elvis Avatar asked Aug 16 '19 07:08

elvis


People also ask

Why is IntelliJ not importing Maven dependencies?

Maven dependencies imported incorrectly If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local .


1 Answers

In case of Intellij Idea, make right click on pom.xml, select maven and then click to reimport. Find below the screenshot.

enter image description here

like image 117
Sambit Avatar answered Sep 24 '22 20:09

Sambit