-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resolve bundle from bndrun file in M2E project: Cannot find framework #6393
Comments
Thanks for the report and for the reproducer. I could reproduce it. I have the feeling the bndrun cannot see the repositories, and thus cannot resolve the bundles.
@pkriens I have no clue at the moment, but maybe the BndEditModel rework somehow is missing something so that the 2 Maven Repositories are not seen. Maybe because it is not a Bnd cnf Workspace. In a quick debug session I noticed that a default workspace instance is created. Not sure this is helpful Not sure, maybe this default workspace is behaving different. @sad-poet Could you maybe check which repositories you see in the Bnd Run Editor (first screenshot, upper red arrow) with Bnd 7.0.0? I have the feeling your other issues (#6394 , #6395 ) are related. |
@chrisrueger, here is how Bnd Run File Editor looks like for me: |
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.
run.bndrun
in Bnd Run File Editor and choose Run tab in the bottom of the editor.Actual result
The following error message is displayed in the Resolution Results window:
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:
The text was updated successfully, but these errors were encountered: