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

问题

在powershell中执行以下命令时报错
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.4
报错的情况

解决方法

在powershell中切换至cmd中执行命令即可


版权声明:本文为m0_51522606原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。