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?

0
6 comments

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

0

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

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

0

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

0

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

0

Thanks!  That is most helpful.

0

Please sign in to leave a comment.