mvn deploy命令发布jar包报错

错误内容

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

解决方案

需要在一个有包含pom文件的目录下执行命令