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