Replies: 4 comments 8 replies
-
Hi @laeubi, I tried switching to
Interestingly, these are exactly the bundles listed in the product's start level configuration. I added all of them to the target platform definition, but Tycho still doesn't find them. I tried it on Windows as well as on MacOS on my machines and with GitHub workflows using MacOS, I always get the same error messages. I also saw some suspicious warnings like the following. But it seems unrelated to not resolving the bundles.
Do you have any idea how I could let tycho resolve the dependencies and materialize the product? |
Beta Was this translation helpful? Give feedback.
-
Yes I tried to help too but gave up when I hit that same problem that I can’t fix. Here’s a very simple project that builds a product https://github.com/eclipse-cbi/p2repo-sbom Maybe that helps? |
Beta Was this translation helpful? Give feedback.
-
Thank you both, @laeubi and @merks, I thought, it's enough to declare the "usual" dependencies in the application's manifest and let the product configure how it is started and Tycho would automatically add org.apache.felix.scr and similar bundles to the materialized product. But it seems, the main bundle that represents the application needs the bundles that start the application, i.e. the bundles mentioned in the product's start level configuration. |
Beta Was this translation helpful? Give feedback.
-
Do you also have an idea why I get these warnings? There must be something wrong, but I have no clue.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @laeubi,
I prepared an OSS repo with my project where I have some challenges resolving dependencies with Tycho 4 when materializing a product.
Setup
includeAllPlatforms="false"
andincludeMode="planner"
<unit id="org.apache.felix.scr" version="2.2.12"/>
in my target definitionThough, the p2 director goal materialize-products complains about a missing felix.scr dependency (see logs in GitHub workflow build). 🤔
I'm on Windows at the moment, the CI build is on MacOS. I try to build for Linux, MacOS, and Windows. I use tycho 4.0.13. Am I doing something wrong?
Is there an easier way to collect all necessary dependencies for a product? I thought, tycho would do most of the necessary steps automatically by transitively following the plug-ins dependencies.
Is there something wrong with my product configuration?
Any help is very appreciated. Thank you and best regards.
Dietrich
Beta Was this translation helpful? Give feedback.
All reactions