Does IntelliJ IDEA have an "add maven dependency" wizard like Eclipse and NetBeans?

Zoltán picture Zoltán · Aug 28, 2014 · Viewed 7.7k times · Source

NetBeans and Eclipse have nice little wizards which allow me to search local and remote Maven repositories and add any dependency correctly to my POM.

Does IntelliJ (community edition) support anything of this sort?

Answer

geoand picture geoand · Aug 28, 2014

In pom.xml press Alt + Insert. In the small pop-up click on Dependency.

enter image description here

There you can search any artifact or class. It looks like:

enter image description here

You also need to make sure that the local and remote repositories you are using have been indexed by IntelliJ. That can easily be done in Settings -> Maven -> Repositories (more details here)