Why does IntelliJ give me “Package doesn’t exist” error?
Just reimport didn’t work. Following worked for me. File -> Invalidate Caches /Restart Then Build -> Rebuild Project That will reimport maven project. Note : You need to invalidate the cache AND ALSO rebuild the project.