I have a java maven project, which is able to build well in the IDE. However each class file i open ends complaining it cannot resolve imported packages It shows the red markers every where. I tried invalidating cache , restarting, Nothing seems to be helping.
The required dependencies are present in the pom.xml.
Any help is appreciated. This is pretty frustrating to see all these red marks in tons of files.