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>

添加之后

相关推荐
Lumbrologist5 小时前
【C++】零基础入门 · 第 13 节:类与对象基础
java·c++·算法
码不停蹄的玄黓5 小时前
Java 生产者-消费者模型详解
java·开发语言·python
笨蛋不要掉眼泪6 小时前
Java并发编程:Executors框架类深度解析
java·开发语言·并发
ylscode6 小时前
Apache CXF LDAP注入漏洞允许攻击者获取任意证书
apache
南极企鹅6 小时前
深入理解 MVCC:数据库并发控制的基石
java·数据库·mysql
凯瑟琳.奥古斯特6 小时前
力扣1235:加权区间调度最优解
java·python·算法·leetcode·职场和发展
想不到ID了6 小时前
第八篇: 登录注册功能实现
java·javascript
码语智行7 小时前
shp文件生成
java
plainGeekDev7 小时前
AlertDialog → DialogFragment
android·java·kotlin
薛定谔的悦7 小时前
光伏-储能-负荷联合预测:给 EMS 装上“预知能力“
java·数据库·人工智能·python·储能