Skip to main content



      Home
Home » Newcomers » Newcomers » Unresolved requirement: Require-Bundle: org.junit.jupiter.api
Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855329] Sat, 08 October 2022 18:13 Go to next message
Eclipse UserFriend
Since I have updated to Eclipse 2022-09, I am seeing the following error and can't run my unit tests anymore.

org.osgi.framework.BundleException: Could not resolve module: tests [68]
Unresolved requirement: Require-Bundle: org.junit.jupiter.api

I have the junit jars in the following locations:
C:\Users\frederic\.p2\pool\plugins\junit-jupiter-engine_5.9.0.jar

Any ideas ?

Thanks
Frederic

[Updated on: Sat, 08 October 2022 18:13] by Moderator

Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855332 is a reply to message #1855329] Sun, 09 October 2022 03:16 Go to previous messageGo to next message
Eclipse UserFriend
The platform is using direct-from-maven dependencies many things and often the results in the bundle ID being different. So the replacement for org.junit.jupiter.api is junit-jupiter-api.
Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855361 is a reply to message #1855332] Mon, 10 October 2022 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Sorry but I don't understand your answer.
Additionally, the same project works on another machine with the same version of Eclipse so I am thinking it is a configuration issue ?
Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855362 is a reply to message #1855361] Mon, 10 October 2022 14:08 Go to previous messageGo to next message
Eclipse UserFriend
This is what I see in the 2022-09 release's repository:

https://download.eclipse.org/oomph/archive/reports/download.eclipse.org/releases/2022-09/202209141001/index/junit-jupiter-api_5.9.0.html

The 2022-06 release had this one:

https://download.eclipse.org/oomph/archive/reports/download.eclipse.org/releases/2022-06/202206151000/index/org.junit.jupiter.api_5.8.1.v20211018-1956.html

You need to use the one that's available and in the updated version it has a different ID.
Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855367 is a reply to message #1855362] Mon, 10 October 2022 19:16 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the info, I will try to match the new ID and will let you know if that resolves my issue.
Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855383 is a reply to message #1855367] Tue, 11 October 2022 11:12 Go to previous message
Eclipse UserFriend
Indeed, that was the culprit and it resolved my issue.
Not sure why it didn't creep up before as I had updated to Eclipse 2022-09 back 1 month ago

Thanks!

[Updated on: Tue, 11 October 2022 11:13] by Moderator

Previous Topic:How to download Damos
Next Topic:Rename/Refactor Shortcut Multiple Options
Goto Forum:
  


Current Time: Mon Jul 14 11:38:40 EDT 2025

Powered by FUDForum. Page generated in 0.09154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top