Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:13 Go to next message
Frederic Bard is currently offline Frederic BardFriend
Messages: 6
Registered: August 2020
Junior Member
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 22:13]

Report message to a moderator

Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855332 is a reply to message #1855329] Sun, 09 October 2022 07:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33222
Registered: July 2009
Senior Member
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855361 is a reply to message #1855332] Mon, 10 October 2022 15:52 Go to previous messageGo to next message
Frederic Bard is currently offline Frederic BardFriend
Messages: 6
Registered: August 2020
Junior Member
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 18:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33222
Registered: July 2009
Senior Member
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unresolved requirement: Require-Bundle: org.junit.jupiter.api [message #1855367 is a reply to message #1855362] Mon, 10 October 2022 23:16 Go to previous messageGo to next message
Frederic Bard is currently offline Frederic BardFriend
Messages: 6
Registered: August 2020
Junior Member
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 15:12 Go to previous message
Frederic Bard is currently offline Frederic BardFriend
Messages: 6
Registered: August 2020
Junior Member
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 15:13]

Report message to a moderator

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


Current Time: Thu Oct 03 20:24:24 GMT 2024

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

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

Back to the top