mvn install:install-file 问题

2022-02-07  本文已影响0人  小P_500d

报错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

上一篇 下一篇

猜你喜欢

热点阅读