1. 程式人生 > >[ERROR] The goal you specified requires a project to execute but there is no POM in this directory

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory

手動新增maven構件報錯 


[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Windows\System32). Please verify you invoked Maven from the correct directory



解決辦法:在每個引數的前後加上引號

例如:

mvn install:install-file "-Dfile=c\xxx.jar" "-DgroupId=aa" "-DartifactId=bb" "-Dversion=1.1"  "-Dpackaging=jar" "-DgeneratePom=true" "-DcreateChecksum=true"