配置maven比较严格。
1.如果出现了输入java命令是可运行的,但输mvn报错
ERROR: JAVA_HOME is set to an invalid directory.
请参考:
[color=red]
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
The JAVA_HOME variable is expected to point to a single directory only, it is not meant to be a list of multiple paths. Out of curiosity, could you point us to the documentation that suggested to set JAVA_HOME that way.
2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
Again, a single directory spec shouldn't end with a separator like ";"
3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
Although the trailing back slash is not necessary, this should work. I just tried
[/color]
2.如果出现mvn 不是内部或外部命令,则参照JAVA_HOME设置的第二条,不能有";"
1.如果出现了输入java命令是可运行的,但输mvn报错
ERROR: JAVA_HOME is set to an invalid directory.
请参考:
[color=red]
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
The JAVA_HOME variable is expected to point to a single directory only, it is not meant to be a list of multiple paths. Out of curiosity, could you point us to the documentation that suggested to set JAVA_HOME that way.
2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
Again, a single directory spec shouldn't end with a separator like ";"
3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
Although the trailing back slash is not necessary, this should work. I just tried
[/color]
2.如果出现mvn 不是内部或外部命令,则参照JAVA_HOME设置的第二条,不能有";"