1. 程式人生 > >maven報錯 the goal you specified requires a project to execute but there is no POM in this direct...

maven報錯 the goal you specified requires a project to execute but there is no POM in this direct...

linux下的maven mvn install報以下錯誤

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]

這個錯誤的原因是當前目錄下沒有pom.xml 檔案,Maven執行必須要pom.xml檔案,所以我就跑到pom.xml檔案目錄下 mvn install.問題解決