Sets JAVA_HOME before executing Maven.