本文介绍了'MVN'不被识别为内部或外部的命令,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到以下错误,当我键入命令 MVN --version
:
I get the following error when I type the command mvn --version
:
MVN'不被识别为内部或外部的命令,
可运行的程序或批处理文件。
我也跟着this但还是我无法完成工作。
I have also followed this but still I am unable to get the work done.
当我键入此命令回声%M2_HOME%
我得到的路径打印为 D:\\ Program Files文件\\ Apache的行家-3.0.4
当我输入'回声%M2%'我得到打印为路径D:\\ Program Files文件\\ Apache的行家-3.0.4 \\ BIN
when I type this command echo %M2_HOME%
I get path printed as D:\Program Files\apache-maven-3.0.4
when I type 'echo %M2%' I get the path printed as D:\Program Files\apache-maven-3.0.4\bin
环境:的Windows XP
推荐答案
请确保您有路径和JAVA_HOME属性集Maven的bin目录
Make sure you have your maven bin directory in the path and the JAVA_HOME property set
这篇关于'MVN'不被识别为内部或外部的命令,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!