Here is my POM.xml file:
1.6
3.2.2.RELEAS
I imported a project as 'Existing Maven Project' and was getting this issue.
Resolution: Changed Java Build Path of JRE System Library to Workspace defailt JRE [jdk 1.8]
Steps:
Right click on project -> build path -> configure build path -> Libraries Tab -> double click JRE System Library -> change to Workspace defailt JRE [jdk 1.8]