[ERROR] The goal you specified requires a project to execute but there is no POM in this directory

来源:互联网 发布:技嘉主板怎么样 知乎 编辑:程序博客网 时间:2024/04/28 03:39

手动添加maven构件报错 


[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Windows\System32). Please verify you invoked Maven from the correct directory



解决办法:在每个参数的前后加上引号

例如:

mvn install:install-file "-Dfile=c\xxx.jar" "-DgroupId=aa" "-DartifactId=bb" "-Dversion=1.1"  "-Dpackaging=jar" "-DgeneratePom=true" "-DcreateChecksum=true"

阅读全文
0 0
原创粉丝点击