Adapted java version in pom.xml to 1.8.