Updated POM to java version 1.8