maven 报错 The goal you specified requires a project to execute but there is no POM in this directory
安装jar到本地maven仓库命令时使用mvninstall:install-file-DgroupId=xxxx-DartifactId=xxxxx-Dversion=1.8-Dpackaging=jar-Dfile=xxxx-DgeneratePom=true在centos7的系统上会可能出现报错 The goal you specified requires a project to exe
文章共120字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
安装jar到本地maven仓库命令时使用
mvn install:install-file -DgroupId=xxxx -DartifactId=xxxxx -Dversion=1.8 -Dpackaging=jar -Dfile=xxxx -DgeneratePom=true
在centos7的系统上会可能出现报错 The goal you specified requires a project to execute but there is no POM in this directory (xxxx). Please verify you invoked Maven from the correct directory.原因是因为操作系统的差异导致,把所有参数加上引号即可。
mvn install:install-file "-DgroupId=xxxx" "-DartifactId=xxx" "-Dversion=1.8" "-Dpackaging=jar" "-Dfile=xxx" "-DgeneratePom=true"
更多推荐
已为社区贡献1条内容
所有评论(0)