前言

  • maven 3.6.1
  • springboot v2.1.x

在多模块的 Maven 项目中,执行 mvn spring-boot:run -pl xxx.groupId:xxx.artifactId命令启动某个 Module 。

错误:No plugin found for prefix spring-boot in the current project and in the plugin groups

在多模块的 Maven 项目中,使用 spring-boot:run 执行启动时,遇到错误:No plugin found for prefix spring-boot in the current project and in the plugin groups

鼓捣了半天,好了。

发生该错误应该是项目的当前配置中缺少spring-boot-maven-plugin插件所致。
分2种情况处理:

  • 项目的父项目是 spring-boot-starter-parent,这种情况下应该不会出这个错误的。如果过出现了,可以检查是否有拼写错误
  • 项目的父项目不是 spring-boot-starter-parent,但某一级父级项目的父项目是 spring-boot-starter-parent,同上。
  • 项目的父项目不是 spring-boot-starter-parent,也不存在某一级父级项目的父项目是 spring-boot-starter-parent,那检查是否未包含spring-boot-maven-plugin插件(本项目未包含时,手动添加)。

再次验证真理:只要设置对,就不会出错。
解决办法:出现这个错误时,将设置修改对即可。对的设置,参考这里。

参考

No plugin found for prefix spring-boot in the current project and in the plugin groups异常解决
maven 多模块项目关系
【sprinb-boot】maven 多模块项目:单独 spring-boot:run 某个模块

错误:No plugin found for prefix spring-boot in the current project and in the plugin groups相关推荐

  1. no plugin found for prefix ‘tomcat 7‘ in the current project and in the plugin groups的解决方法

    no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups的解决方法 参考文章: (1) ...

  2. Maven出现错误No plugin found for prefix ‘jetty‘ in the current project and in the plugin groups的问题解决

    Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决 参考文 ...

  3. maven出现No plugin found for prefix ‘help‘ in the current project and in the plugin groups [org.ap

    控制台输入 mvn help:system 下载相应包时 出现如下问题: Noplugin found for prefix 'help' in the current project and in ...

  4. 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups

    在maven进行jetty的调试中出现错误: [ERROR] No plugin found for prefix 'jetty' in the current project and in the ...

  5. springboot 控制台输出错误信息_高级码农Spring Boot实战进阶之过滤器、拦截器的使用...

    众所周知的Spring Boot是很优秀的框架,它的出现简化了新Spring应用的初始搭建以及开发过程,大大减少了代码量,目前已被大多数企业认可和使用.这个专栏将对Spring Boot框架从浅入深, ...

  6. 用 Docker 构建、运行、发布来一个 Spring Boot 应用

    原文同步至 http://waylau.com/docker-spring-boot/ 本文演示了如何用 Docker 构建.运行.发布来一个 Spring Boot 应用. Docker 简介 Do ...

  7. Spring Boot-Spring Tool Suit + Gradle 构建第一个Spring Boot 项目02

    概述 将工程托管到Github Gradle构建 为什么一个main函数就能启动web并提供这么多功能 幕后的 Spring Boot 分发器和 multipart 配置 视图解析器.静态资源以及区域 ...

  8. Docker 部署 Spring Boot 项目初探

    2019独角兽企业重金招聘Python工程师标准>>> 仅想在Docker里运行一个Spring Boot项目,捣鼓了许久... 本文主要适用于Windows环境下的Docker 一 ...

  9. IX. Spring Boot应用

    How-to指南 本章节将回答一些常见的"我该怎么做"类型的问题,这些问题在我们使用Spring Boot时经常遇到.这绝不是一个详尽的列表,但它覆盖了很多方面. 如果遇到一个特殊 ...

最新文章

  1. json格式值班表解析
  2. SAS数据挖掘实战篇【六】
  3. 【深度学习】手把手教你实现一个人工智能案例(蓄电池爬碱识别)
  4. Mac系统如何配置adb路径
  5. Algorithm of permutation(全排列算法)
  6. 2013年6月份安徽省计算机等级考试二级c语言答案,2013年计算机二级C语言上机试题九及答案...
  7. jmeter throughput图表_jmeter生成HTML格式性能测试报告
  8. 特征数据清洗 编码 标准化
  9. 多元:复相关系数和偏相关系数
  10. 佳博打印机驱动安装方法
  11. leader epoch
  12. 积分商城游戏化运营?积分游戏应该如何正确设置
  13. 【复杂网络系列】复杂网络研究常用载体集
  14. 1.1 css style 样式定义:行内 style 属性、单页 <style> 标签、多页 <style> 标签
  15. 20210310 钣金件螺栓螺帽缺失检测汇总 dropout
  16. 进入空气稀薄地带,《朗读者》再现阿里云10年技术自主研发
  17. C语言for循环语句及嵌套(误区,易错点要理解)
  18. 博客网页bootstra
  19. 香港第一金:美债上升美元走强 黄金暴跌下破199
  20. 趋势信息整合(01) 谷歌google开发者 那些事儿

热门文章

  1. 《js高程》 基本概念 上
  2. 爱屋及乌 年轻投资者因喜爱Snapchat亏钱也买Snap股票
  3. 读《白帽子讲Web安全》之安全意识篇(一)
  4. C# 指定Webbrowser控件所用IE内核版本
  5. SQL性能优化:如何定位网络性能问题
  6. js 小数取整的函数
  7. .net集合类的研究--链表—ListDictionary,LinkedListT
  8. Linux平台安装MongoDB(亲测)
  9. Django——2 路由分配设置 re_path正则匹配 include总路由 url传参 name使用 模板渲染render方法 模板渲染方法...
  10. 如何用Python从数据库里面获取数据?4个步骤就能轻松实现