微服务版本升级

spring cloud升级到 Hoxton.SR9 版本 spring boot升级到 2.3.7.RELEASE 之后子模块报

Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>

最开始没升级版本的时候spring-boot-maven-plugin也没写版本号 也没报错

加了版本号之后还是报错 报啥没记录 也是类似

Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin: 2.3.7.RELEASE 这样

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

然后就把所有子模块的

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

都删了 只留父模块的 spring-boot-maven-plugin  

删了之后不报错,打包也正常、暂时没遇到其他问题

不死心又把

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

加上,接着报错 结果加上版本号就不报错了

不明所以 之前加了版本号真的还报错的

感觉搞到maven配置还是蛮难的 对我而言 配置太多记不住

有大神知道原因请不吝指教

GitHub 加速计划 / ma / maven
36
0
下载
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:17 天前 )
2865dac1 - https://github.com/checkstyle/checkstyle/pull/17782 Co-authored-by: Vincent Potucek <vpotucek@me.com> 2 小时前
7872c6d8 Changes: * update Mimir to latest 0.8.1 version * update infusers as well * cache changes (see below) Cache strategy changes: * initial build: it is snowballing one cache when build is not about PR * full (rebuild itself + site with itself) and its build: it is snowballing cache differentiated by OS/JDK when build is not about PR Current problems: on unchanged POM (ie. new IT added), the dependencies ITs pull from Central will be cached by Mimir, but due "cache hit" the new cache will not get stored. Hence, Mimir caching was basically lost. Also, there was a mixup of caches from PRs and main branches. Finally, matrix jobs were competing for cache store. 2 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐