maven 安装第三方jar到本地 出现 The goal you specified requires a project to execute but there is no POM in this directory 错误

时间:2016-07-15 16:57:43   收藏:0   阅读:3234

原因是因为操作系统的差异导致,把所有参数加上引号即可。

如下所示:

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

原文:http://www.cnblogs.com/demonrain/p/5674091.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!