failed to resolve org.junit.platform
Posted pandaly
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了failed to resolve org.junit.platform相关的知识,希望对你有一定的参考价值。
IDEA提示:failed to resolve org.junit.platform,如下图
方法一:修改Maven镜像
D:Program Filesapache-maven-3.6.3-pcconf
添加配置信息
<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的主要内容,如果未能解决你的问题,请参考以下文章
Android Studio:Failed to resolve ***
Vue.js报错Failed to resolve filter问题原因
vue启动项目的报错:Failed to resolve loader: less-loader You may need to install it.