Add support for Java8 in pom