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

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

换了办公电脑,重新配置maven执行maven命令的时候出现如下错误,由原因是指定的目标项目所在目录中没有POM。解决办法是cmd执行下面命令即可:

mvn help:system

这样,在用户的个人文件夹下,生成一个.m2文件夹,文件夹里面有一个repository文件夹,里面是刚下载的jar文件

你可能感兴趣的:(Maven,noPom,maven)