IML file continually disappearing

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?

6 comments
Comment actions Permalink

Is your project Maven or Gradle based? What does the Local History show for the reason of removing this file?

0
Comment actions Permalink

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?

0
Comment actions Permalink

External change means that .iml file was changed externally, outside of IntelliJ IDEA, probably by the version control or something else.

0
Comment actions Permalink

Yeah, but I haven't don't any version control functions in several weeks.  That is what is so puzzling.

0
Comment actions Permalink

For a Maven project .iml files can be regenerated by performing the reimport in the Maven Projects tool window.

0
Comment actions Permalink

Thanks!  That is most helpful.

0

Please sign in to leave a comment.