- In a Java class, place the caret at an unresolved reference, and press , or .
- From the suggestion list, choose
The Maven Artifact Search dialog box opens with the Search for class tab having the focus, and with the reference in question as the search string.
- Select the desired dependency, and click Add. IntelliJ IDEA downloads the necessary
libraries and rebuilds indices, and adds the corresponding <dependency>
element to the pom.xml file. Import assistant pop-up window appears at the unresolved reference:
- Press , or to apply import assistance.