Maven Mac OS上的mvn clean命令引发错误

Maven Mac OS上的mvn clean命令引发错误,maven,maven-plugin,osx-mavericks,Maven,Maven Plugin,Osx Mavericks,我正在尝试删除doorstop创建的文档,错误为“多个根文档”。有关更多信息,请参阅下面的链接 解决方案是运行“mvn clean”命令,但我发现“mvn clean”命令的错误如下。任何可能的解决方案 (base) MANOJs-MacBook-Air:~ manojdeshpande$ mvn clean [INFO] Scanning for projects... [INFO] ------------------------------------------------------

我正在尝试删除doorstop创建的文档,错误为“多个根文档”。有关更多信息,请参阅下面的链接

解决方案是运行“mvn clean”命令,但我发现“mvn clean”命令的错误如下。任何可能的解决方案

(base) MANOJs-MacBook-Air:~ manojdeshpande$ mvn clean
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.090 s
[INFO] Finished at: 2019-11-21T23:01:40+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/manojdeshpande). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

错误信息非常清楚:

您指定的目标需要执行一个项目,但没有 此目录中的POM(/Users/manojdeshpande)。请核实一下 从正确的目录调用Maven

问题是Maven找不到运行Maven clean命令的pom文件(pom.xml是Maven项目配置文件),因此即使指定了clean目标,Maven也不可能知道该做什么

也许您的pom文件在/Users/manojdeshpande之外的其他地方