Updated pom.xml, added compiler plugin to set java version.