I have a maven project forked and cloned from a git repo onto my eclipse. It is build on Java 8. The first thing i do is perform a
mvn clean install
Doing this in pom.xml file and after updating the project, the problem is gone.
org.apache.maven.plugins maven-compiler-plugin 2.4 1.8 1.8
Update the pom.xml under .
Update your project.
Then clean maven and install maven.