IntelliJ IDEA 版本:Ultimate 2019.1
spring-boot-starter-parent: 2.2.0.RELEASE
我们在运行 test case 时,会一直卡住,resolving maven dependencies… org.junit.platform:junit-platform-launcher:1.5.2,超时以后就 Failed 了。
![](/2020/03/%E8%A7%A3%E5%86%B3IDEA%E5%8D%A1%E4%BD%8Fresolving-maven-dependencies-Failed-to-resolve-org-junit-platform-junit-platform-launcher-1-5-2/junit-error.png)
这是 IDEA 的一个bug,解析 artifact 时,没有用到 maven 的 user settings file
解决办法:
在 pom.xml 文件中添加如下依赖:
1 | <dependency> |