[ERROR] The goal you specified requires a project to execute but there is no POM in this directory
Posted Trigl
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[ERROR] The goal you specified requires a project to execute but there is no POM in this directory相关的知识,希望对你有一定的参考价值。
问题
在安装maven的时候,我在cmd里面输入mvn install的时候报错:
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]
原因和解决方法
报错说是需要一个工程来执行,但是没有POM,我推测是maven工程的执行开始于pom.xml,正如javaweb工程开始于web.xml,这句话意思是想要执行一个maven工程,目录底下必须有pom.xml,现在没有,所有报错了。我的解决方法是进入到maven工程根目录下面(有pom.xml),然后执行mvn install就好了。
以上是关于[ERROR] The goal you specified requires a project to execute but there is no POM in this directory的主要内容,如果未能解决你的问题,请参考以下文章
Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle(
[ERROR] You have enabled the binary log, but you haven't provided the mandatory server-id....
ERROR You have enabled the binary log, but you haven't provided the mandatory server-id
解决:You might be seeing this error because you‘re using the wrong Compose file version
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual ...
解决——》ERROR 1064 (42000)You have an error in your SQL syntax; check the manual that corresponds