Update pom to work with java 8