I saw many people who faced that kind of problem before. I tried what they tried to solve the issue but still unfortunately no success.
I can run mvn clean install succesfully and nothing sees problem but unfortunately at Intellij(latest version), I can not compile the project. It says unable to compile the project. I invalidated caces, tried maven reimporting, deleted .iml and pom, checked settings javac compiler but everything seems find and still it does not compile. It is going to make me mad soon. Please help.