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

failed to resolve org.junit.platform

 

方法一:修改Maven镜像

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

failed to resolve org.junit.platform

 

 

添加配置信息

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

 

failed to resolve org.junit.platform

 

 

方法二:修改配置依赖 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

相关文章:

  • 2021-11-08
  • 2021-09-29
  • 2021-05-23
  • 2022-12-23
  • 2021-06-20
  • 2021-04-26
  • 2021-12-19
  • 2021-11-27
猜你喜欢
  • 2021-09-21
  • 2021-12-10
  • 2021-08-06
  • 2021-10-21
  • 2021-10-01
  • 2021-11-12
  • 2021-07-06
相关资源
相似解决方案