migrated pom.xml to java 8