zoukankan      html  css  js  c++  java
  • 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:UsersAdministrator). 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:UsersAdministrator”这个路径下找不到pom.xml文件,可是我的工程不是在这个路径下并且我也是指定了工程路径了,为什么还是报错,所以我就尝试直接进入工程文件夹,执行mvn test,发现可以正常启动maven工程项目了,原来“mvn test”这个命令就是在当前文件夹下找pom.xml文件并执行

  • 相关阅读:
    Linux上查找
    Linux进程
    Linux重定向
    Linux上常用的基本命令
    LInux上返回到切换目录前的目录
    【网络知识之一】4/7层网络模型
    【操作系统之十五】iptables黑白名单、自定义链、网络防火墙、常用动作
    【操作系统之十四】iptables扩展模块
    【操作系统之十三】Netfilter与iptables
    【操作系统之十二】分支预测、CPU亲和性(affinity)
  • 原文地址:https://www.cnblogs.com/xxyBlogs/p/4624094.html
Copyright © 2011-2022 走看看