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!
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With