Using %JAVA_HOME% as JDK directory now rather than JRE directory in pom.xml.