In my maven project, I have this Effective POM:
The above suggests is helpful for me! Right click on project -> Properties -> Project Facets, then change the Java facets version to 1.7.
If it doesn't work, add the following code to pom.xml:
finalName
org.apache.maven.plugins
maven-compiler-plugin
3.1
1.7
1.7
Save pom.xml.
And then, right click on project-->Maven-->Update Project.