Maven: ‘mvn‘ is not recognized as an internal or external command

下载并配置好Maven之后,CMD测试安装是否成功:mvn -v

提示:

'mvn' is not recognized as an internal or external command,
operable program or batch file.

检查环境变量:

MAVEN_HOME:

%MAVEN_HOME%\bin:

 

 看上去没问题,怎么回事呢?

探索一番,找到了原因。是Path变量中,最后一个分号的问题,删掉分号即可。

 重新测试,成功:

Maven: ‘mvn‘ is not recognized as an internal or external command_第1张图片

你可能感兴趣的:(web开发,maven,java)