Windows 8中的Apache Maven安装 [英] Apache Maven installation in windows 8
本文介绍了Windows 8中的Apache Maven安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循了此链接中提到的步骤 http://maven.apache.org/download.cgi
I followed steps mentioned in this link http://maven.apache.org/download.cgi
每当我在cmd中键入mvn --version时. 我得到的"mvn"未被识别为内部或外部命令,可操作程序或批处理文件.
Whenever I type mvn --version in cmd. I got 'mvn' is not recognized as an internal or external command, operable program or batch file.
但是当我使用以管理员身份运行"打开cmd时,它起作用了.
But when I opened cmd with "Run as a administrator" it worked.
操作系统:Windows 8
OS: windows 8
如何在Windows 8上为任何用户运行mvn.
How can I run mvn for any user on windows 8.
推荐答案
尝试将环境变量M2设置为系统变量而不是用户变量.
Try setting the environment variable M2 as System variable instead of User variable.
这篇关于Windows 8中的Apache Maven安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文