这可能是因为您的项目中缺少 junit-platform-launcher 的依赖。您可以尝试在项目的 pom.xml 文件中添加以下依赖:

<dependency>
    <groupId>org.junit.platform</groupId>
    <artifactId>junit-platform-launcher</artifactId>
    <version>1.9.2</version>
    <scope>test</scope>
</dependency>

如果您已经添加了这个依赖,可能是因为 Maven 无法正常访问 Maven Central 存储库。您可以尝试清理 Maven 本地存储库并重新构建项目,或者检查您的网络连接是否正常。

spring5项目 引入junit592 报错 Failed to resolve orgjunitplatformjunit-platform-launcher192

原文地址: https://www.cveoy.top/t/topic/fuDh 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录