Generating Maven Dependencies
Maven integration facilitates working with dependencies. IntelliJ IDEA helps generate dependencies in
To create Maven dependencies in a pom.XML file
- Open the desired
pom.xmlfile for editing.
- With the editor tab having the focus, choose on the main menu, or press Alt+Insert, and choose from the Generate pop-up window.
- In the Maven Artifact Search dialog box, select the desired dependency to be added.
Note that you can search either in the artifacts, or in the classes. To do that, type the search string in the
text field to narrow down the search scope, select the desired dependency, and click Add.
The dependency is added to your
pom.xml. IntelliJ IDEA also adds a Dependencies node with your generated dependency to the Maven Projects tool window.
Last modified: 20 July 2016