Set source level 1.8 in pom and update eclipse files.