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

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

标签:class   log   com   http   si   la   sp   c   as   

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

posted @ 2021-03-08 17:20  爱吃芒果的二哈  阅读(1395)  评论(0)    收藏  举报