关于idea在测试时卡在 Resolving Maven dependencies的问题

2020-05-21   258 次阅读


解决方法:在pom.xml文件中添加以下依赖

 <dependency>
 <!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:1.3.2 not found errors -->
            <groupId>org.junit.platform</groupId>
            <artifactId>junit-platform-launcher</artifactId>
            <scope>test</scope>
</dependency>     

原因为 :
The issue here is that IntelliJ is trying to resolve the required artifact itself without using the Maven ‘User settings file’ (settings.xml) as configured into the IDE. It is going direct to Maven Central which is blocked by my employer.

大意是 :
这里的问题是IntelliJ试图在不使用IDE中配置的Maven“用户设置文件”(settings.xml)的情况下解决所需的工件本身。它将直接连接到Maven Central,但被我的雇主屏蔽了

转载于https://blog.csdn.net/qiuyeyijian/article/details/104401631

Q.E.D.

知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

ALL WILL BE CLEAR