maven 安裝第三方jar到本地 出現 The goal you specified requires a project to execute but there is no POM in this directory 錯誤


原因是因為操作系統的差異導致,把所有參數加上引號即可。

如下所示:

mvn install:install-file "-Dfile=cobra.jar" "-DgroupId=com.cobra" "-DartifactId=cobra" "-Dversion=0.98.4" "-Dpackaging=jar" "-DgeneratePom=true"

 

詳見http://stackoverflow.com/questions/6704813/maven-generating-pom-file/11199865#11199865


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM