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

版权声明:本文为博主原创文章,未经博主允许不得转载。你想转载请附加连接哦 https://blog.csdn.net/dmw412724/article/details/82982675

出现这种情况我只发现两种可能.

1.看字面意思.是指该命令的目录没有POM.XML

到有pom.xml里去执行命令即可.

2.有可能mvn命令语句格式有误.

如下:

mvn archetype:create  -  DgroupId=...

上面语句的:"-"和"DgroupId"中间就多了个空格就会报这个错.

猜你喜欢

转载自blog.csdn.net/dmw412724/article/details/82982675