maven出现JAVA_HOME is set to an invalid directory.

ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = D:/jdk1.5.0_15;
Please set the JAVA_HOME variable in your environment to match the

location of your Java installation


更改JAVA_HOME 去分号之类的都没用,后来一看,原来是刚才安装时新建了个m2,文件夹,改了setting.xml忘记删了,删掉,即解决

你可能感兴趣的:(maven出现JAVA_HOME is set to an invalid directory.)