报错:failed to resolve org.junit.platform

本质是依赖添加没有成功

1. 解决方案一:修改Maven镜像

在Maven的conf目录下的setting.xml配置阿里云镜像:
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>https://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
修改pom.xml文件,添加依赖:
<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> <scope>test</scope> </dependency>

2. 复制其他人的包或者网上下载依赖添加到对应的仓库地址里面

感谢那些夸奖和鼓励,那些不经意的惦记和突如其来的善意,热爱世间浪漫万物,沿途也为晚霞驻足,嘻嘻。
原文地址:https://www.cnblogs.com/linanana/p/14876435.html