Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Re-importing Modules into IntelliJ

I am having trouble re-importing previously imported and removed maven modules on IntelliJ. The only way I am able to import them is by renaming them (changing folder names), which I don't want to do. When I go through the wizard I get the message: Unable to proceed. Nothing found to import. My project is grayed out in the Window that says select Maven project to import. I am guessing IntelliJ caches names of imported modules somewhere and doesn't purge them when you remove the modules. Anybody able to help?

like image 202
Gitahi Ng'ang'a Avatar asked Aug 16 '13 16:08

Gitahi Ng'ang'a


3 Answers

This happened to me as well, what I did:

Go to File > Settings > Maven > Ignored Files and uncheck the ignored files.

Then re-import the module, shouldn't be greyed out anymore.

EL

like image 184
user3650929 Avatar answered Oct 18 '22 03:10

user3650929


Are you aware of this button on the Maven tab? It may fix your issue.

enter image description here

Also, this may be a cache issue. You can clear your cache by clicking File -> Invalidate Caches...

Other than that I do not have enough information to help you. If you had steps to reproduce this issue that would help a lot.

like image 16
Daniel Kaplan Avatar answered Oct 18 '22 01:10

Daniel Kaplan


I was able to fix this in IntelliJ 2016.3 by right-clicking relevant pom.xml file and selecting: Maven > Unignore Projects

Reimport all Maven projects does not change its status.

like image 3
harmonious Avatar answered Oct 18 '22 02:10

harmonious