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