Added plugin to pom.xml to specify java version