美文网首页
mvn install:install-file 问题

mvn install:install-file 问题

作者: 小P_500d | 来源:发表于2022-02-07 11:10 被阅读0次

报错The goal you specified requires a project to execute but there is no POM in this directory 。。。

之前的命令:mvn install:install-file -Dfile= /Users/pengyang/Desktop/project/study/sparkmaven/ext/AdViewUtil.jar -DgroupId=com.pp -DartifactId=pp -Dversion=1.0-SNAPSHOT -Dpackaging=jar

解决方法:加引号

之后的命令:mvn install:install-file "-Dfile=/Users/pengyang/Desktop/project/study/sparkmaven/ext/AdViewUtil.jar" "-DgroupId=com.pp" "-DartifactId=pp" "-Dversion=1.0-SNAPSHOT" "-Dpackaging=jar"

参考:https://stackoverflow.com/questions/16348459/error-the-goal-you-specified-requires-a-project-to-execute-but-there-is-no-pom

相关文章

网友评论

      本文标题:mvn install:install-file 问题

      本文链接:https://www.haomeiwen.com/subject/qkhmkrtx.html