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>

添加之后

相关推荐
2301_8153577014 分钟前
Spring框架--IOC技术
java·后端·spring
yb0os114 分钟前
手写一个简单的线程池
java·开发语言·数据库·计算机·线程池·juc
李景琰30 分钟前
分布式事务之Seata
java·分布式
加什么瓦31 分钟前
JVM——内存模型
java·开发语言·jvm
观音山保我别报错33 分钟前
JVM 的垃圾回收机制 GC
java·开发语言·jvm
走过冬季40 分钟前
Java常用数据结构底层实现原理及应用场景
java·开发语言·数据结构
XIMCoCo42 分钟前
C++ 实现二叉树的后序遍历与中序遍历构建及层次遍历输出
java·开发语言·c++
Java 技术轻分享1 小时前
Java 多线程编程:核心原理、同步机制与高并发详解
java·开发语言
0x7CF5 小时前
SetThrowSegvLongjmpSEHFilter错误和myFuncInitialize 崩溃
java·linux·算法
diving deep9 小时前
springboot集成日志配置文件
java·spring boot·后端·logback