1. 问题描述

 mvn spring-boot:run出错No plugin found for prefix 'spring-boot'

mvn spring-boot:run出错No plugin found for prefix 'spring-boot'
springboot文档上的入门例子,在项目根目录控制台中输入mvn spring-boot:run 结果build failure,但是直接在eclipse中run application可以运行。

2. 解决

  No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups available from the repositories [local (E:\repository), maven-central (http://wcsrcd02/nexus/content/repositories/central/)]
  意思就是说没有spring-boot-maven-plugin,去本地仓库查看一下,只有两个.lastUpdated文件,说明jar包没有下载成功,再去maven的远程仓库看一下,发现没有spring-boot-maven-plugin。最后换一个仓库就OK了。

相关文章: