首页 > 编程语言 > 详细

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      阅读:3227      评论:0      收藏:0      [点我收藏+]

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

如下所示:

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!