当前位置:   article > 正文

mvn install 本地jar包到仓库报错... there is no POM in this directory_mvn install:install-file报错

mvn install:install-file报错

执行mvn install:install-file –Dfile=/xx/xx/org.restlet-2.4.3.jar -DgroupId=org.restlet.jee -DartifactId=org.restlet -Dversion=2.4.3 -Dpackaging=jar

报错:

The goal you specified requires a project to execute but there is no POM in this directory (/xx/xx). Please verify you invoked Maven from the correct directory

解决方式:添加双引号解决

mvn install:install-file -Dfile="/xx/xx/org.restlet-2.4.3.jar" -DgroupId="org.restlet.jee" -DartifactId="org.restlet" -Dversion="2.4.3" -Dpackaging="jar"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/825478
推荐阅读
相关标签
  

闽ICP备14008679号