Added java level to pom.xml.