The only fix that worked for me was: Go to the pom.xml file of the problematic module -> right click on it -> maven -> generate sources and update folders