You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest Bndtools snapshot version in an M2E workspace, the Bnd Run File Editor’s resolver will not take into account the -runrequires directives from bndrun files that are -included into the active file. Resolution would produce an incomplete list of -runbundles that does not contain bundles required from the included bndrun file.
This is a regression from Bndtools 7.0.0 where resolution in M2E projects worked correctly.
Project setup
This is the same reproducer Maven project as in my previous reports #6393 and #6394. There I have prepared a reproducer Maven project that builds a minimal Hello World bundle using Bnd Maven Plugins. The project contains a run.bndrun file that runs the bundle with the Eclipse Equinox OSGi framework and debug.bndrun file that includes run.bndrun and adds the Apache Felix Gogo console for debugging. There are no dependencies other than Equinox and Gogo.
Resolving debug.bndrun from the IDE currently produces an error related to -runfw and -runee (#6394). To demonstrate the problem with -runbundles, I made a modified version of the file called debug-standalone.bndrun, which is used below.
Open debug-standalone.bndrun in Bnd Run File Editor and choose Run tab in the bottom of the editor.
Click Resolve.
Actual result
A Resolution Results window opens, displaying a resolution that is not valid. The list of required bundles includes only the Gogo shell bundles required directly from debug-standalone.bndrun, but does not include the project’s own bundle which is required transitively from -include run.bndrun.
The application will not work as expected if run , and mvn bnd-resolver:verify will report an incorrect resolution.
Expected result
There should be no error. A Resolution Results window should open, displaying the required resources used to create the Run Bundles list.
The resulting -runbundles list should include the project’ own bundle and Gogo shell bundles and look like the following:
The command line mvn bnd-indexer:index bnd-resolver:resolve can process the bndrun file correctly and render exactly the above expected result. (The POM is configured to use Bnd Maven plugins version 7.1.0).
Bndtools 7.0.0 can also resolve this file in the Eclipse IDE correctly.
The text was updated successfully, but these errors were encountered:
Using the latest Bndtools snapshot version in an M2E workspace, the Bnd Run File Editor’s resolver will not take into account the
-runrequires
directives from bndrun files that are-include
d into the active file. Resolution would produce an incomplete list of-runbundles
that does not contain bundles required from the included bndrun file.This is a regression from Bndtools 7.0.0 where resolution in M2E projects worked correctly.
Project setup
This is the same reproducer Maven project as in my previous reports #6393 and #6394. There I have prepared a reproducer Maven project that builds a minimal Hello World bundle using Bnd Maven Plugins. The project contains a run.bndrun file that runs the bundle with the Eclipse Equinox OSGi framework and debug.bndrun file that includes run.bndrun and adds the Apache Felix Gogo console for debugging. There are no dependencies other than Equinox and Gogo.
Resolving debug.bndrun from the IDE currently produces an error related to
-runfw
and-runee
(#6394). To demonstrate the problem with-runbundles
, I made a modified version of the file called debug-standalone.bndrun, which is used below.Steps to reproduce
debug-standalone.bndrun
in Bnd Run File Editor and choose Run tab in the bottom of the editor.Actual result
A Resolution Results window opens, displaying a resolution that is not valid. The list of required bundles includes only the Gogo shell bundles required directly from debug-standalone.bndrun, but does not include the project’s own bundle which is required transitively from
-include run.bndrun
.The application will not work as expected if run , and
mvn bnd-resolver:verify
will report an incorrect resolution.Expected result
There should be no error. A Resolution Results window should open, displaying the required resources used to create the Run Bundles list.
The resulting
-runbundles
list should include the project’ own bundle and Gogo shell bundles and look like the following:The command line
mvn bnd-indexer:index bnd-resolver:resolve
can process the bndrun file correctly and render exactly the above expected result. (The POM is configured to use Bnd Maven plugins version 7.1.0).Bndtools 7.0.0 can also resolve this file in the Eclipse IDE correctly.
The text was updated successfully, but these errors were encountered: