Sudden "package doesn't exist" in IntelliJ IDEA

3.6k views Asked by At

Recently I started to receive the following errors about random packages:

enter image description here

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:

enter image description here

1

There are 1 answers

0
Lisbon On

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"