簡體   English   中英

您指定的目標需要執行一個項目,但此目錄中沒有 POM 但我不需要 pom.xml

[英]The goal you specified requires a project to execute but there is no POM in this directory But i dont need a pom.xml

我希望您能幫助我,因為我嘗試運行我的項目但出現錯誤,我在文本編輯器中但問題是我不需要 pom.xml,我該如何消除或解決此錯誤。 我感謝您的幫助。

錯誤:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.141 s
[INFO] Finished at: 2021-07-21T18:20:38-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this 
directory (*********). 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
[Finished in 3.9s]

一些 Maven 目標需要 POM(不幸的是,您沒有顯示您調用的目標)。

然后你要么需要創建一個 POM,要么你需要調用一個不同的目標。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM