您的位置:首页 > 产品设计 > UI/UE

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory

2015-12-14 16:41 246 查看

问题

在安装maven的时候,我在cmd里面输入mvn install的时候报错:

[code]The goal you specified requires a project to execute but there is no POM
in this directory (C:\Program Files\三浪). Please verify you invoked Mave
n from the correct directory. -> [Help 1]
[/code]

原因和解决方法

报错说是需要一个工程来执行,但是没有POM,我推测是maven工程的执行开始于pom.xml,正如javaweb工程开始于web.xml,这句话意思是想要执行一个maven工程,目录底下必须有pom.xml,现在没有,所有报错了。我的解决方法是进入到maven工程根目录下面(有pom.xml),然后执行mvn install就好了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: