Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA does not scan maven centralized repository for artifacts

In eclipse the dependency artifacts can be searched from the centralized repository with maven plugin and added to the pom.xml file. But in IntelliJ IDEA the dependency search work only in local repository. If the searched artifact is not in local repository, the result would be empty.
Is there a way to search for artifacts from central repository and add it to pom.xml in IntelliJ ?

like image 708
Manu Avatar asked Dec 21 '13 09:12

Manu


People also ask

Why is IntelliJ not importing Maven dependencies?

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 . m2 repository to see if it was downloaded correctly.

How do I open Maven artifact search in IntelliJ?

In the POM, right-click anywhere in the editor to open the context menu and select Maven | Show Dependencies. Alternatively, press Ctrl+Alt+Shift+U or Ctrl+Alt+U . In the diagram window, IntelliJ IDEA displays the sub project and all its dependencies including the transitive ones.


1 Answers

Yes, Settings | Maven | Repositories, click on the repository and then click on Update, it will get indexed.

like image 157
Meo Avatar answered Sep 30 '22 19:09

Meo