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文件並執行

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 The goal you specified requires a project to execute but there is no POM in this directory (D:\test\AutoTestFramework). Please verify you invoked Maven fro m the correct directory. -> [Help 1] maven出現:Failed to execute goal on project ...: Could not resolve dependencies for project ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of 3: mojo org.apache.maven.plugins: Maven多模塊項目單獨編譯子模塊項目時報錯:Failed to execute goal on project/Could not resolve dependencies for project 【maven】Maven插件篇 --- maven項目 mvn install 報錯: Failed to execute goal on project 項目名: Could not resolve dependencies for project 兼容問題:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project sms-c [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on project test: The packaging for this project did not assign a file to the build artifact -> Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project Resource: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project crm: Compilation failure
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM