Plugin 'org.springframework.boot:spring-boot-maven-plugin:'not found

前言

在配置spring-boot的maven时,软件报错:Plugin 'org.springframework.boot:spring-boot-maven-plugin:'not found
在CSDN和博客园博主智慧的帮助下,解决了这个问题,现将解决过程记录下来,以作后续参考。

解决方案

在pom.xml中,我的原始配置如下:

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

在maven库中,发现了Repository\org\springframework\boot\spring-boot-maven-plugin存在相关插件2.1.7.RELEASE
在pom.xml上补充版本:

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <version>2.1.7.RELEASE</version>
</plugin>

更新maven配置后,发现不再报此错误。

又有了一个新的报错"Element 'plugin' cannot have character [children], because the type's content type is element-only"
通过参考博客园文章并检查pom.xml后,发现在上一步添加的</version>中我不小心多打了一个">"变成了</version>>
把多余的括号去掉后终于正常了。

参考

  1. 解决:Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found
  2. Element 'plugin' cannot have character [children], because the type's content type is element-only
posted @   BrianSun  阅读(11648)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2020-11-26 aach64架构 ubuntu20 桌面版 编译安装ffmpeg难点总结
点击右上角即可分享
微信分享提示