首页 > 其他 > 详细

failed to resolve org.junit.platform

时间:2020-05-16 19:01:27      阅读:354      评论:0      收藏:0      [点我收藏+]

 

IDEA提示:failed to resolve org.junit.platform,如下图

技术分享图片

 

方法一:修改Maven镜像

D:\Program Files\apache-maven-3.6.3-pc\conf

技术分享图片

 

 

添加配置信息

<mirror> 
<id>alimaven</id> 
<name>aliyun maven</name> 
<url>https://maven.aliyun.com/nexus/content/groups/public/</url> 
<mirrorOf>central</mirrorOf>
</mirror>

 

技术分享图片

 

 

方法二:修改配置依赖 pom.xml

在项目的依赖配置文件 pox.xml 里加上以下代码:

<dependency>
 <!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:1.3.2 not found errors -->
            <groupId>org.junit.platform</groupId>
            <artifactId>junit-platform-launcher</artifactId>
            <scope>test</scope>
</dependency>

 

参考:

https://blog.csdn.net/qiuyeyijian/article/details/104401631

failed to resolve org.junit.platform

原文:https://www.cnblogs.com/pandaly/p/12901574.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!