Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 258
Zoltán Avatar asked Aug 28 '14 08:08

Zoltán


People also ask

Does IntelliJ IDEA include Maven?

IntelliJ IDEA creates a Maven project with the pom. xml file that includes compiler and target versions of Java, dedicated Maven tool window, and all the necessary dependencies to start your work.

Is Maven automatically installed with IntelliJ?

IntelliJ IDEA has in-built support for Maven. We are using IntelliJ IDEA Community Edition 11.1 in this example. You can run Maven goals from IntelliJ IDEA. You can view the output of Maven commands inside the IntelliJ IDEA using its own console.


1 Answers

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)

like image 153
geoand Avatar answered Sep 23 '22 14:09

geoand