Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Maven auto import automatically in IntelliJ IDEA?

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'?

like image 537
mjs Avatar asked Sep 29 '14 12:09

mjs


People also ask

How do I turn off auto import in IntelliJ?

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.

How do I enable auto import dependencies in IntelliJ?

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.

How do I stop IntelliJ from optimizing imports?

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.


5 Answers

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"

like image 85
Darek Kay Avatar answered Oct 05 '22 23:10

Darek Kay


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" enter image description here

like image 42
Shubhendu Pramanik Avatar answered Oct 06 '22 01:10

Shubhendu Pramanik


Go to Intellij's Settings and navigate to Build, Execution, Deployment -> Maven -> Importing -> uncheck Import Maven projects automatically.

like image 26
Andrei Sfat Avatar answered Oct 06 '22 01:10

Andrei Sfat


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.

like image 28
Milo P Avatar answered Oct 06 '22 01:10

Milo P


Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing -> Import Maven projects automatically

like image 27
PhiVuTru Avatar answered Oct 05 '22 23:10

PhiVuTru