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

慈云数据 1年前 (2024-04-14) 技术支持 64 0

文章目录

  • 一、报错问题
  • 二、问题背景
  • 三、原因分析
  • 四、解决方案

    一、报错问题

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

    二、问题背景

    pom.xml 文件配置情况,如下所示:

        
            
                
                    org.springframework.boot
                    spring-boot-maven-plugin
                
            
        
    

    Maven仓库中存在多个版本的 spring-boot-maven-plugin 包,如下所示:

    在这里插入图片描述

    三、原因分析

    无法识别使用哪个版本的 spring-boot-maven-plugin 包。

    四、解决方案

    方案1:使用 标签添加版本号,如下所示。

        
            
                
                    org.springframework.boot
                    spring-boot-maven-plugin
                    3.1.0
                
            
        
    

    方案2:使用 标签管理插件。具体做法是在原来的 标签外层增加 标签,如下所示。

        
            
                
                    
                        org.springframework.boot
                        spring-boot-maven-plugin
                    
                
            
        
    

    参考文章

    • 【bug日记】报错“Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found”(通过google终于解决)
微信扫一扫加客服

微信扫一扫加客服

简体中文English