I believe this setting might be causing IntelliJ IDEA to behave slowly. I used to get a popup and finally clicked 'do this automatically', and now it is on, but I want to turn it off again. How can I disable Maven 'auto import'?
You can disable auto-import on completion and use quick-fixes instead: In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | General | Auto Import. On the Auto Import page that opens, use the checkboxes in the TypeScript/JavaScript area to enable or disable import generation on code completion.
In the Settings/Preferences dialog ( Ctrl+Alt+S ), click Editor | General | Auto Import. Select the Add unambiguous imports on the fly checkbox, and apply the changes.
4 Answers. Show activity on this post. Disable File | Settings | Editor | General | Auto Import | Optimize imports on the fly. Normally you don't need to add imports manually, IDEA does it for you.
Uncheck Project Settings | Maven | Importing | Import Maven projects automatically
.
For IDEA 14+ it's under Settings | Build, Execution, Deployment | Build Tools | Maven | Importing | Import Maven projects automatically
.
For IDEA 2020+, open Settings | Build, Execution, Deployment | Build Tools
and check "Reload projects after changes in the build scripts"
and "Any changes"
Although above answers are correct. I have observed that above option is not available on IntelliJ 2020.2 version. So, there you need to go Settings -> Build Tool -> Check "Reload projects after changes in the build scripts" -> check "Any changes"
Go to Intellij's Settings and navigate to Build, Execution, Deployment -> Maven -> Importing ->
uncheck Import Maven projects automatically
.
For me (IntelliJ IDEA 14.1.1 on Ubuntu 12) this setting was in Settings > Build, Execution, Deployment > Build Tools > Maven > Importing > [X] Import Maven projects automatically
.
In case it moves again, or you want to get to it quickly, the Maven settings are also findable through a general search by double-tapping Shift and then typing maven
, which is how I found it this time--I think the setting location in IDEA must have been moved since the other answers were posted.
Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing -> Import Maven projects automatically
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