Added JAVA_HOME and M2_HOME