当进行SpringBoot测试时一直卡在Resolving Maven dependencies…解决方案

有没有遇到这个问题,在测试的时候
一直卡在Resolving Maven dependencies…
框内其实因为一直下载一个Junit5依赖的jar包,下载不下来所以卡死。
此时需要在pom中手动导入一下两个依赖

		<dependency>
            <groupId>org.junit.platformgroupId>
            <artifactId>junit-platform-launcherartifactId>
            <scope>testscope>
        dependency>
        <dependency>
            <groupId>junitgroupId>
            <artifactId>junitartifactId>
            <scope>testscope>
        dependency>

OK,完美解决!

你可能感兴趣的:(错误记录)