IML file continually disappearing Follow
Answered
I keep having my .iml file deleted. That results in IntelliJ not knowing my project is a Java application. I can ask a co-worker for his .iml and I'm back in action. But, next time I start up, it may be deleted again.
What can I do or investigate to fix this?
Please sign in to leave a comment.
Is your project Maven or Gradle based? What does the Local History show for the reason of removing this file?
Its a Maven project. If by "local history" you mean clicking the local history menu item when the .iml file is highlighted, I see three entries (oldest to newest): contents are identical, contents are identical, then External change. If that is now what you meant, where would I find it?
External change means that .iml file was changed externally, outside of IntelliJ IDEA, probably by the version control or something else.
Yeah, but I haven't don't any version control functions in several weeks. That is what is so puzzling.
For a Maven project .iml files can be regenerated by performing the reimport in the Maven Projects tool window.
Thanks! That is most helpful.