Added java version to maven