如何将Maven添加到Path变量? [英] How to add Maven to the Path variable?

查看:179
本文介绍了如何将Maven添加到Path变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了此处中的"noreferrer> maven 3.5.0 .我已经在路径中设置了它:

I have downloaded the maven 3.5.0 from here. I have set it in the path:

C:\apache-maven-3.5.0

然后我将其添加到Windows 7的路径中,如下所示:

Then i treid to add it to the path of Windows 7 as below:

  1. 右键单击我的计算机

  1. Right click on my computer

属性

高级系统设置

环境变量

新的用户变量,并为Maven_Home添加了值C:\apache-maven-3.5.0

New user variable and added Maven_Home with value C:\apache-maven-3.5.0

使用以下命令将其添加到路径变量中:%Maven_Home%\bin

Add it to path variable with: %Maven_Home%\bin

打开cmd并在桌面

结果:

它不能识别Maven

推荐答案

当我用;%Maven_Home%\bin;编辑path变量时,问题就解决了,因此我应该在;之前和之后添加它.

The problem get solved when i edit the path variable with ;%Maven_Home%\bin; so i should add the ; before and after it.

这篇关于如何将Maven添加到Path变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆