本文主要是介绍‘mvn’ is not recognized as an internal or external command, operable program or batch file.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Win7下给Maven配置环境变量,通过桌面控制面板操作,无论怎么设置都不起作用,始终输出“不是内部命令”之类的结果。
后来找到下面的解决方法,通过cmd设置环境变量,最后才解决问题。
set M2_HOME "D:\Program Files\Maven\apache-maven-3.3.3"
set M2=%M2_HOME%\bin
set path=%path%;%M2%
http://www.javadomain.in/tag/mvn-is-not-recognized-as-an-internal-or-external-command/
Maven path has not been set. So windows can not recognize mvn command.
Solution:
Set the maven path in cmd like this,
这篇关于‘mvn’ is not recognized as an internal or external command, operable program or batch file.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!