Does IntelliJ IDEA have a short-cut to force maven project reimport (to reload dependencies). I happen to be working with two dependant projects and I make that action many times during the day.
Thanks in advance.
Press Ctrl + Shift + A to find actions, and input "reload", you will find the "Reload All Maven Projects". On a Mac, use ⌘ + ⇧ + A instead.
Reimport will load your local jars instead of remote jars, especially SNAPSHOT ones. You can enable force update snapshot in maven menu, which will enable -U switch in intellij.
You can define your own key map in IDE Settings. To do it :
(I did this with IDEA EAP 12, under windows)
I looked throught keymap reference(Help->Dafault Keymap Reference
) and didn't find anything with maven. But when I make some changes in my pom.xml
IDEA shows dialog in which it offer to import all dependencies.
other maven settings you can find in File->Settings->Maven->Import
or use combination Shift+CTRL+A
and in input field write maven.
With newer versions of Intellij and macos, hit shift-shift and then type "reload maven" to get to the "Reload All Maven Projects" action. This will refresh the dependencies - no need to reimport.
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