Exception: intellij failed to resolve org.junit.platform:junit-platform-launcher:1.3.2

已回答

Hi:

I cannot resolve this exception when attempting to run a junit test(s).

intellij failed to resolve org.junit.platform:junit-platform-launcher:1.3.2

Can someone provide direction?

Thanks.

8

Made the requested changes and it didn't fixed the issue. 

Then removed the app and all related Intellij config files from Library directory and installed the app from toolbox. At first start it ran the test without issues, but after importing the settings file, it stoped executing the test with the same error. So I guess the issue is with the settings.

I can't share the project unfortunately.

0

Luis Alves Thank you for the update!

I've been looking through the settings export you've shared, trying to figure out what might have been causing the issue, which, unfortunately, does not seem to propagate to the logs. However, there does not seem to be any obvious culprits.

I'm a little suspicious about a proxy configuration, mentioned there. Is there an actual proxy in your environment?

 

If you are willing to help isolate the issue you can try the following:

  1. Reset IDEA's settings to defaults and make sure the issue is no longer present
  2. Close IDEA and copy files from the Settings Backup (one by one or in small batches) to Configuration Directory/options
  3. After copying each file / batch start IDEA and check if the issue came back
0

Had the same issue running junit tests. Found the old path in configuration file %APPDATA%\JetBrains\IntelliJIdea2025.1\options\path.macros.xml

Replaced the old value and restarted IntelliJ. After that, test started.
Hope that helps!

0

I recently discovered this can also be caused by a renamed home directory: e.g. what used to be /Users/foo is now /Users/bar. Somewhere IntelliJ stores absolute paths it shouldn't be persisting. Deleting the /.idea directory and reimporting the project should fix this. 

0

请先登录再写评论。