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.
Please sign in to leave a comment.
Please report a bug at https://youtrack.jetbrains.com/issues/IDEA and attach idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085) after trying to refresh Maven project.
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.