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

maven打包的时候遇到这种错误:

jar报红,但是Pom文件却没有报红,项目中也没有错误

但是当我打包的时候:mvn clean package的时候

报:

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

 

最后进入到项目下再打包就没问题了,虽然jar依旧报红但是不影响使用

posted @ 2021-10-09 17:37  guo176  阅读(621)  评论(0)    收藏  举报