Spring Boot项目引入依赖报错:Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:3.1.1

1、报错提示:

Cannot resolve plugin org.apache.maven.plugins:maven-install-plugin:3.1.1

Try to run Maven import with -U flag (force update snapshots)

报错SpringBoot版本:

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.1.2</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

2、解决方案

降低SpringBoot版本:

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.9</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

猜你喜欢

转载自blog.csdn.net/YYBDESHIJIE/article/details/132272295
今日推荐