Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: Maven projects need to be imported: Import Changes Enable Auto-Import

upon creating a new maven project I get the popup box saying

     "Maven projects need to be imported: Import Changes Enable Auto-Import"

The links for import changes and enable auto-import are "NOT" enabled but taking a look into the Event Log, I see the link enabled so I can click on Enable Auto-Import.

But I really don't understand the difference between Auto-Import and non Auto-Import

I have noticed that an option is checked in the preferences called "Import Maven projects automatically" when you check the Auto-Import in the event log... otherwise it remains un-checked.

Remembering this is a new maven project created from the intellij ide...

I wonder if anyone can help me with the confusion ??

I hate doing something unless I understand why I am doing it, is this normal practice in intellij and maven ??

Should it not be checked by default... what is the difference between it being checked or not checked?

Thanks again

like image 358
Martin Avatar asked Apr 20 '14 08:04

Martin


People also ask

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 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 automatically import packages in IntelliJ?

The auto import for classes is working if you enable it under "Settings > Editor > General > Auto Import".


1 Answers

Select this check box, if you want IntelliJ IDEA to perform reimport automatically each time you change your pom.xml.

From the documentation.

In other words it just automatically updates project details upon POM change. Generally it tells IDEA that, for example, dependencies for those new external classes you started using in your code can be found in updated version of POM.

Here is some information about it as well.

like image 85
mareckmareck Avatar answered Nov 16 '22 01:11

mareckmareck