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



[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.169 s
[INFO] Finished at: 2015-07-06T12:21:24+08:00
[INFO] Final Memory: 4M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
 in this directory (C:\Users\Administrator). Please verify you invoked Maven fro
m the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception

最近学习使用maven,然后在通过cmd命令“maven test E:mavenTest”,运行项目工程的时候碰过这个错误,看错误日志提示,我们知道“C:\Users\Administrator”这个路径下找不到pom.xml文件,可是我的工程不是在这个路径下并且我也是指定了工程路径了,为什么还是报错,所以我就尝试直接进入工程文件夹,执行mvn test,发现可以正常启动maven工程项目了,原来“mvn test”这个命令就是在当前文件夹下找pom.xml文件并执行

时间: 2024-10-01 13:47:04

The goal you specified requires a project to execute but there is no POM in this directory的相关文章

maven 安装第三方jar到本地 出现 The goal you specified requires a project to execute but there is no POM in this directory 错误

原因是因为操作系统的差异导致,把所有参数加上引号即可. 如下所示: mvn install:install-file "-Dfile=cobra.jar" "-DgroupId=com.cobra" "-DartifactId=cobra" "-Dversion=0.98.4" "-Dpackaging=jar" "-DgeneratePom=true" 详见http://stackov

jenkins报错The goal you specified requires a project to execute but there is no POM inthis directory

报错截图及详细: 15:30:29[ERROR]The goal you specified requires a project to execute but there is no POM inthis directory (/data/workspace). Please verify you invoked Maven from thecorrect directory. -> [Help 1] 15:30:29[ERROR] 15:30:29[ERROR] Tosee the full

The parent project must have a packaging type of POM

在Eclipse中使用Maven添加模块时报错:The parent project must have a packaging type of POM 解决办法: 是将pom.xml 中的  <packaging>jar</packaging> 改成  <packaging>pom</packaging> 见下图: 用"Overview"视图查看,做如下设置: 再切换到xml视图,就可以看到packaging已经修改为pom了.

Failed to execute goal on project MakeFriends: Could not resolve dependencie The POM for .chengpai.jtd:jtd-service-api:jar:1.0-SNAPSHOT is missing, no dependency information available

本笔者在学习maven的基础,然后建立了一个maven的项目,然后想对其进行依赖操作,pom.xml进行依赖操作时候出现了这样的错误,说是找不到这个依赖的包,但是事实上已经导入了这个包. 同时,也在maven的包环境中找得到它的依赖包 执行clean是成功的,但是test和Install就会显示丢失包,并且加载失败 解决方法: 1.首先,更改了test文件的名字,保持它与类的名字相同 2.对其依赖的maven项目进行clean和test install操作 3.重新对自己设置的这个maven项目

POM(project Object Model) Maven包管理依赖 pom.xml文件

什么是POM POM全称为“Project Object Model”,意思是工程对象模型.Maven工程使用pom.xml来指定工程配置信息,和其他文本信息.该配置文件以xml为格式,使用xml语法表明信息. 快速预览 一个pom.xml文件主要包括以下元素信息: pom.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

[异常解决] Make nRF51 DFU Project Appear &quot;fatal error: uECC.h: No such file or directory&quot;

What's the problem When I make the nRF51's DFU project appear "no uECC.h" error: And then find that: The uECC library is an external library that is not a part of the SDK and it must be installed by the user. Installing micro-ecc micro-ecc is an

学习maven的各种问题

1. The container 'Maven Dependencies' references non existing library 解决方法,将eclipse中maven插件中“resolve dependencies from workspace projects”的选项取消 默认的本地库更改,修改maven_home\conf\settings.xml中localRepository的配置 [ERROR] The goal you specified requires a proje

shell 脚本执行mvn clean install 报错 --MissingProjectException

ll 脚本执行mvn clean install 报错 12月12日北京OSC源创会 —— 开源技术的年终盛典 »   [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] --------------------------------------------------

在INSTALL TINY时出现下面的问题怎么办?

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\). Please verify you invoked Maven from the correct directory. -> [Help 1] 因为你没有在pom.xml文件所在的目录当中,请检查是不是没有进入目录?如果是在windows操作系统下,是不是没有切换盘符?