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
复制代码

解决办法:由于.m2文件夹在C:\Users\Administrator路径下,所以将eclipse的项目路径workspace移动到C:\Users\Administrator下就不会出现这个问题了。

posted @ 2019-03-02 01:11  愿世界对你温柔相待  Views(104)  Comments(0)    收藏  举报