Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Maven Dependency Auto Completion

I've noticed that sometimes when I start typing in a dependency for maven, it will offer me options for dependencies I have used in the past, but not all of the time.

Is there some way to update the list of dependencies available in this list that pops up, it's actually quite handy.

Thanks!

like image 240
dardo Avatar asked Mar 01 '14 04:03

dardo


People also ask

How do I enable auto complete in IntelliJ?

By default, IntelliJ IDEA displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Shift+Space or choose Code | Code Completion | Type-Matching from the main menu. If necessary, press Ctrl+Shift+Space once again.

How do I enable auto import dependencies in IntelliJ?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), click Editor | General | Auto Import. Enable the Optimize imports on the fly option and apply the changes.

How clean install Maven dependencies IntelliJ?

Click Run -> Edit Configurations -> Press + -> Search for "Maven" -> Locate "Command Line" field and enter in following maven commands "clean install" -> Press OK. Now click the green button to run that Run/Debug Configuration, this will maven clean install the module/project.


1 Answers

Directly copying what Meo linked to here:

Please navigate in Settings to Project settings -> Maven -> Repositories and Update the repo listed there. That will refresh Maven's / IntelliJ's knowledge of what Maven packages exist.

like image 164
JJ Brown Avatar answered Oct 14 '22 06:10

JJ Brown