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

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

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

OK,完美解决!

猜你喜欢

转载自blog.csdn.net/lp20171401131/article/details/106732754
今日推荐