Fixed pom.xml errors and updated to Java 8.