Blog Logo
  • Home
  • SACC2013
  • Categories
  • Tags
  • About
  • Feed

maven 环境变量设置

by Ruanjf — on maven 12 Feb 2012

windows

右键我的电脑->属性->高级->环境变量 在系统变量里新建:

M2_HOME=D:\Program Files\apache-maven-3.0.4(新建)
Path=;%M2_HOME%\bin;(追加到原有的系统变量下)

在cmd中输入:

echo %M2_HOME% #测试环境变量是否生效
mvn -v #测试是否配置正确
Ruanjf Author

Ruanjf

ruanjiefeng@gmail.com

是我,这就是我

Comments

comments powered by Disqus
All content copyright Ruanjf © 2020 • All rights reserved.
Proudly published with Jekyll on Tuesday, 05 May 2020 at 05:34 PM UTC