Exception: intellij failed to resolve org.junit.platform:junit-platform-launcher:1.3.2
Answered
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.
Please sign in to leave a comment.
Please provide project sample to reproduce the issue. How do you run the test, is Gradle/Maven or IDEA Junit run configuration used? Do you have Junit defined in module dependencies (Project Structure | Modules | Dependencies)? Please share the console output.
I've encountered the same issue. I've done 2 things to get it fixed (not sure which of that helped):
1. Fixed my IntelliJ LAN proxy settings in File -> Settings -> Proxy settings
2. mvn install install-file -Dfile=<path-to-junit-platform-launcher> -DgroupId=org.junit.platform -DartifactId=junit-platform-launcher -Dversion=1.3.2 -Dpackaging=jar
I have the same issue and thanks to Yury's comment, I fixed the proxy settings and this is what was causing this.
https://youtrack.jetbrains.com/issue/IDEA-231927 for the junit-platform-launcher issue
My issue was also resolved by doing the first step of Yury's answer.
Intellij IDEA > Preferences... > Appearance & Behavior > System Settings > HTTP Proxy
Changed from No Proxy to Auto-detect proxy settings
My issue was also resolved by doing the first step of Yury's answer. +1
It's nice that so many of you could resolve the issue, but could anyone elaborate on the "Fixed my IntelliJ LAN proxy settings" part? I had issues with my proxy in the past, but now everything works fine, so I'm not sure if I'm just missing something or whether my error stems from something else.
Edit: I've changed it as Jason did (auto-detect) and it worked.
Hello Y Elouarti,
Please clarify if you continue experiencing the issues or everything works correct for you now? Thanks
Hello Olga,
As mentioned in the edit, it worked now.
Thanks!
modified version of the LAN issue here: I tried at home, but my Maven Proxy configuration only works from company network or via VPN.
So, either
1. connect to VPN and try again (simple solution)
2. or edit your maven settings to connect from outside VPN as well
I fixed it by add the dependency junit-jupiter in addition to junit-jupiter-engine.
Exception: intellij failed to resolve org.junit.platform:junit-platform-launcher:1.7
Added in pom.xml:
Proxy settings set to automatic and tested connection Successful
Failed to resolve
not fixed.
Hello Gopal Prashad,
If possible please file an issue at the YouTrack (https://youtrack.jetbrains.com/issue/) providing a sample project where the issue is reproduced for you. Thank you
I removed the dependency:
spring-boot-starter-test
from my pom file and it worked.https://stackoverflow.com/questions/59900637/error-testengine-with-id-junit-vintage-failed-to-discover-tests-with-spring
I have the same issue and thanks to Yury's comment, I fixed the proxy settings and this is what was causing this.
Me too! Thanks!
Hello, I am having the same issue as above only it is looking for v 1.5.2 and the proxy settings did not resolve this. Not sure where the platform launcher is, and this started when upgrading IntelliJ. I am going to try to downgrade to see if that will work.
Iowatiger08 Do you use Maven? Does the build/tests work from the command line `mvn package`? You may need to set the proxy for Maven per https://maven.apache.org/guides/mini/guide-proxies.html.
Some projects were no longer opening, so I uninstalled the current version v 2021.2.1 as this was blocking me. I reinstalled earlier version (2021.1.3), and I see in the install that there is an option to include the PATH variable for launchers. I wonder if the upgrade may have wiped that out or did not properly update it? For now, I have to keep working on the known good version.
Hello Iowatiger08,
Unfortunately it's not enough information to understand what is the reason of your issue. In case the issue continues to be reproduced with the new version, please create an issue at YouTrack: https://youtrack.jetbrains.com/issues/IDEA and provide the little sample project if possible. Thank you
My Issue was resolved by following Jason Ladu steps which referenced Yury Yakovlev answer.
Fix for me:
1. add following to your pom.xml
2. hit Reload All Maven Projects in Intellij
My issue was also resolved by changing the http proxy from File>Settings>System settings and check Auto detect proxy settings
I encountered the same issue: "Failed to resolve org.junit.platform:junit-platform-launcher:1.11.3” on IntelliJ IDEA 2024.3.3
It came along another warning from Spaces “This project uses private packages from Space. To avoid download errors, please log in with...”
Maven was testing just fine, changing proxy settings didn't help.
I was able to solve this issue by uninstalling JetBrain's Space plugin :
Settings > Plugins > Space (Uninstall)
Hope it helps someone
Uninstalling the Space plugin did it for me! Nice finding!
Removing the Space plugin did the trick, thanks!
After upgrading from the last version of 2024 to 2025.1, this problem occurred. According to idea.log, idea looks for the dependent <b0>junit-platform-launcher</b0> in a non-existent local maven repo directory. However, the actual configuration of maven is <b1>D:\mvn_repo</b1>. It seems that idea read an old configuration from somewhere. After I use the restore default settings, this problem can be solved, but all other settings need to be reconfigured by me, which is too troublesome.
The following are screenshots of the current maven configuration when there is an error, as well as the error log.
I've the same issue as 2484819865, in his comment. When I restore defaults it runs the test, but after importing the previous settings it no longer runs. This happened after upgrading to v2025.1.
Since I don't want to loose my custom settings, I did a downgrade to 2024, and it now works. Will wait for a fix…
Luis Alves Thank you for reporting this!
Could you please share more details: the exact error message you are getting, full IDEA logs (Help → Collect Logs and Diagnostic Data) and the settings export, if possible (File → Manage IDE Settings → Export Settings)?
You share the files privately using our upload service - please post the Upload ID here.
2484819865 If you still have an export of settings when the issue was still present I would appreciate if you could share yours as well.
Hi Roman Vatagin! I've uploaded the requested data. Please see Upload id: 2025_04_24_XXMmmfdXaji9DgyQGUPs8f (files: image.png and 2 more)
Luis Alves Thank you for sharing the files!
Unfortunately, the error does not seem to propagate to the logs.
Could you please try the following:
IntelliJIdea2025.1
andIntelliJIdea2024.3
)pom.xml
/build.gradle(.kts)
-> Open as ProjectIf the issue persists, could you please share the affected Project?