Updated pom.xml to java8 project.