天天看点

No plugin found for prefix 'maven' in the current project and in the plugin groups

今天安装maven时,在命令行中敲入"mvn help:system"后,看样子是需要从远程安装一些东西。

结果报如题那样的错误,build失败。

敲入"mvn -v" 返回的是正确的信息(即系统环境变量配置的没问题)。

百度了一圈,似乎问题出在maven安装目录下/conf/setting.xml这个配置文件。

在文件中配置一个镜像地址即可。

No plugin found for prefix 'maven' in the current project and in the plugin groups

然后 再次运行“mvn help:system”,成功,Build SUCCESS

No plugin found for prefix 'maven' in the current project and in the plugin groups