Add java version properties in pom.xml.