Reason for the problem:
the problem here is that IntelliJ tries to solve the required artifact itself without using the Maven “user settings file” (settings. XML) configured in the IDE. It will connect directly to Maven central, but it is blocked by my employer
Solution add in POM file:
<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>
Similar Posts:
- [Solved] Jsonobject has no from object, idea has no Maven dependency, jsonobject Maven dependency package
- SpringBoot Datas Validation Build Error: Add a provider like Hibernate Validator (RI) to your classpath
- Failed to resolve: junit:junit:4.12 [How to Solve]
- Maven no main manifest attribute when generate jar for project
- Android Studio: Could not download junit.jar (junit:junit:4.12)
- How to Solve compile error: package junit.framework does not exist
- Springboot always reports an error when importing JSP dependencies
- [Solved] Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupported
- [Solved] Cannot resolve symbol ‘SpringJUnit4ClassRunner’
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing