Recently I started to receive the following errors about random packages:
mvn build is working of course, the problem is only for building within Idea.
Sometimes I can fix it with reloading maven project, sometimes I can't.
"Disappeared" package is listed both in pom and in the list of libraries:


Reopen IntelliJ again. On the top right corner choose Maven- perform clean and install for the module in which you face this error:- "Package does not exist"