- In a Java class, place the caret at an unresolved reference, and press ⌥⏎ or ⌥⏎⌥⏎ or ⌥⏎⌘1 or ⌘1⌥ Enter, ⌥⏎ or ⌥⏎⌥ Enter, ⌥⏎ 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 thepom.xmlfile. Import assistant pop-up window appears at the unresolved reference:
- Press ⌥⏎ or ⌥⏎⌥⏎ or ⌥⏎⌘1 or ⌘1⌥ Enter, ⌥⏎ or ⌥⏎⌥ Enter, ⌥⏎ or ⌥⏎ to apply import assistance.