Unresolved plugin: ‘org.apache.maven.plugins‘解决报错

新建springboot项目报Unresolved plugin: 'org.apache.maven.plugins:maven-surefire-plugin:3.1.2'

缺什么插件 引入什么插件的依赖就行

bash 复制代码
<dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-install-plugin</artifactId>
            <version>your version</version>
            <type>maven-plugin</type>
        </dependency>
 
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-deploy-plugin</artifactId>
             <version>your version</version>
            <type>maven-plugin</type>
        </dependency>
 
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>your version</version>
            <type>maven-plugin</type>
        </dependency>
 
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
             <version>your version</version>
            <type>maven-plugin</type>
        </dependency>
 
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
             <version>your version</version>
            <type>maven-plugin</type>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
             <version>your version</version>
            <type>maven-plugin</type>
        </dependency>

添加之后

相关推荐
豆瓣鸡7 分钟前
算法日记 - Day3
java·开发语言·算法
萧瑟余晖23 分钟前
Java深入解析篇九之NIO详解
java·网络·nio
The Chosen One98543 分钟前
高进度算法模板速记(待完善)
java·前端·算法
极光代码工作室3 小时前
基于SpringBoot的课程预约系统
java·springboot·web开发·后端开发
Leighteen3 小时前
`try-finally` 里的 `return`:为什么 `finally` 会悄悄改掉返回值、吞掉异常
java·开发语言
名字还没想好☜4 小时前
Go 的 time.After 在 select 循环里内存泄漏:定时器堆积原理与 timer.Reset 正确姿势
java·数据库·golang·go·goroutine
圆山猫4 小时前
[Virtualization](三):RISC-V H-extension 与 Guest 执行模式
android·java·risc-v
caishenzhibiao5 小时前
期货先行者主图 同花顺期货通指标
java·c语言·c#
史呆芬5 小时前
分布式事务实战:微服务跨服务数据一致性解决方案
java·后端·spring cloud
IT界的老黄牛5 小时前
限流命中后该怎么办:直接丢、阻塞等待、延迟重投三种姿势的取舍
java·rocketmq·redisson·令牌桶·削峰·分布式限流