CMD在Maven中无法识别 [英] CMD not recognised in Maven

查看:269
本文介绍了CMD在Maven中无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个maven项目,当我运行它成功构建但不启动服务器而是打印出以下'cmd'不被识别为内部或外部命令,可操作程序或批处理文件。
我实际上已经尝试重新安装netbeans但这似乎并没有解决问题。
任何帮助都将受到高度赞赏。

I have a maven project which when i run it builds successfully but does not start the server instead it prints out the following "'cmd' is not recognized as an internal or external command, operable program or batch file.". i have actually tried re-installing netbeans but that doesn't seem to solve the problem. Any help would be highly appreciated.

推荐答案

这不是您的IDE或MAVEN中的问题。检查您的 system32在windows中的 PATH 环境变量中正确定义。在此之前验证您的JAVA_HOME和M2_HOME路径是否正确

This not an issue with your IDE or in MAVEN.Check your "system32" is correctly defined in the PATH environment variable in windows.Before this verify your JAVA_HOME and M2_HOME paths are correct

Path = %SystemRoot%\system32;

这篇关于CMD在Maven中无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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