-
-
Notifications
You must be signed in to change notification settings - Fork 300
Description
Using the latest Bndtools snapshot in a M2E workspace, attempting to resolve a .bndrun file from the Eclipse IDE results in an error.
When trying to resolve the same file with Bndtools 7.1.0, a different error appears, as described in #6380.
This is a regression from Bndtools version 7.0.0, where everything works as expected.
Steps to reproduce
I have prepared a reproducer Maven project that builds a minimal bundle using bnd-maven-plugin. The project contains a run.bndrun file that runs this bundle with Equinox, as well as debug.bndrun file that includes run.bndrun and adds Apache Felix Gogo console. The POM is configured to export executable JAR using bnd-export-maven-plugin.
- Launch Eclipse IDE 2024-12 with Bndtools version 7.2.0.DEV-202412050913-g8c79789 (installed from https://bndtools.jfrog.io/bndtools/update-snapshot without Bndtools PDE integration).
- Import the reproducer project from the archive: bndtools-resolve-reproducer.tar.gz
- Open
run.bndrunin Bnd Run File Editor and choose Run tab in the bottom of the editor. - Click Resolve button.
Actual result
The following error message is displayed in the Resolution Results window:
Resolution failed. Summary:
⇒ Bundle: org.example.bndtools.bndrun.reproducer cannot be resolved
Note: The summary above may be incomplete. Please check the full output below for more hints.
Resolution failed. Capabilities satisfying the following requirements could not be found:
[<<INITIAL>>]
⇒ osgi.identity: (osgi.identity=org.example.bndtools.bndrun.reproducer)
resolvedebug log: INFO: Using framework org.eclipse.osgi;3.21.0
ERROR: Cannot find framework org.eclipse.osgi;3.21.0
DEBUG: for osgi.identity;filter:='(osgi.identity=org.example.bndtools.bndrun.reproducer)' found []
DEBUG: for osgi.identity;filter:='(osgi.identity=org.example.bndtools.bndrun.reproducer)' found []
Bndtools version 7.0.0 can resolve the file correctly. bnd-resolver-maven-plugin v7.1.0 configured in the POM also works as expected (mvn bnd-indexer:index bnd-resolver:resolve).
Expected result
There should be no error. A Resolution Results window should open, displaying the required resources used to create the Run Bundles list, which must contain exactly one bundle built from the project itself:
-runbundles: org.example.bndtools.bndrun.reproducer;version='[1.0.0,1.0.1)'