Invalidate Cache/Restart not fixing missing imports in maven(Problem no longer replicates)

Answered

No longer replicates

From time to time I have to manually delete my .m2 repository. If Idea is open with a projects, that project gets a bunch of import errors.

So then I rebuild the project from the command line using maven, but the errors persist.

I've tried reimporting the projects by selecting the project, going to the maven option and re-importing, the invalidating the caches and restarting. This fails to fix the errors.

The only thing that works is deleting the .idea folder and all .iml files then re-importing the project. Then the import errors are solved.

 

0
2 comments
Avatar
Permanently deleted user

I'm going to try deleting this post. Using refreshing the project using the maven option now works. It was an on-going problem for a while, but is now gone.

0

Please sign in to leave a comment.