Unable to run JUnit test cases in IntelliJ – Failed to resolve junit-platform-launcher:1.8.2 | Community
Skip to main content
Level 1
July 21, 2026
Question

Unable to run JUnit test cases in IntelliJ – Failed to resolve junit-platform-launcher:1.8.2

  • July 21, 2026
  • 0 replies
  • 26 views

Hi Team,

 

I am facing an issue while running JUnit test cases from IntelliJ in an AEM project.

 

Error:

Error running 'PageModelTest': Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2

 

The project already has JUnit 5 (junit-jupiter) configured in the core/pom.xml.

 

I also tried explicitly adding the following dependency to core/pom.xml:

 

org.junit.platform:junit-platform-launcher:1.8.2 with test scope.

 

After adding the dependency, I reloaded the Maven project and tried running the test case again, but I am still getting the same error.

 

Could you please suggest how to resolve this issue? Is this related to Maven dependency resolution, repository configuration, IntelliJ configuration, or JUnit version compatibility?

 

Thanks.