IDEA運行測試錯誤Failed to resolve org.junit.platform:junit-platform-launcher


問題原因:
這里的問題是IntelliJ試圖在不使用IDE中配置的Maven“用戶設置文件”(settings.xml)的情況下解決所需的工件本身。它將直接連接到Maven Central,但被我的雇主屏蔽了

解決方案在pom文件添加:

<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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM