No available bundle exports error in the example tycho-its/projects/mixed.reactor/ when imported into Eclipse IDE after Cleaning #2180
Replies: 1 comment 1 reply
-
The most important part would be if the maven build succeeds (because that actually the "Tycho Part"), the other is the IDE/PDE part for this to work, you should first check if your bundle is shown in the "Target Platform State" (you probably need to show that view explicitly), if that is missing, check if/where the manifest file is generated, if it is placed, e.g. in the target/classes/META-INF folder you need to configure PDE to find that file this is done in the file Normally this should be done by m2e automatically, so you can try to remove you project from the workspace and make sure you have deleted all "dot files" (.project, .classpapath . settings ...) and then import as maven project again. If you still see issues, you might report this to the PDE project where this is handeled in the IDE, there are knwon issues where one needs to restart the IDE sometimes if PDE gets stuck somewhere. |
Beta Was this translation helpful? Give feedback.
-
Hello,
My mixed-reactor project has a workaround that uses the Felix Maven plugin to generate manifest files into the root of the project although not ideal this works well within the IDE. I read the article at https://xn--lubisoft-0za.gmbh/en/articles/mixed-reactor-builds-with-tycho/ with great interest that this is no longer necessary. Unfortunately when I follow the steps, Eclipse is showing the error
No available bundle exports 'xyz'
. I have reproduced the same behaviour with the mixed.reactor example in the Tycho repo.Steps to reproduce:
No errors at this point
In problems there is the entry
No available bundle exports package felix.bundle.exported
Cleaning/rebuilding/restarting never clears this error. The only thing that does, is in tycho.bundle/META-INF/MANIFEST.MF is to remove the felix.bundle.exported entry and re-add it. Using Project -> Clean will then trigger the error again.
Am I doing something wrong? I'm using "Eclipse IDE for RCP and RAP Developer 2022-12", have installed no extra plugins and using the bundled JDK with Eclipse.
Thank you and apologies in advance for wasting anyone's time.
Beta Was this translation helpful? Give feedback.
All reactions