Replies: 9 comments 41 replies
-
Hi Dirk, great to hear that this new feature is used/evaluated. Tycho should support this already out of the box, but it is still quite new so there might be some bugs lurking around or missing documentation or some cases that are not fully supported. Also as always you should not need to declare things in an alternative way, Tycho should pickup and discover things automatically. You can also find my little demonstrator project where I have evaluated this new feature in Equinox here but it is a very limited case of course! Maybe you can create a little project in the Tycho demo that shows the problem? |
Beta Was this translation helpful? Give feedback.
-
Stripping things down to a very simple setup is always not that easy. But I will give it a try. I will need some time to create a really simple reproducer. In the meantime I have updated my cookbook example from the Tycho branch and converted the service project there. https://github.com/fipro78/e4-cookbook-basic-recipe/tree/tycho-pde-bnd I also get a compile error there, but interestingly here it says
while on the other bigger project I get tons of
for various imports of EMF, XText etc. Hope that helps at the moment. I will try to setup a simpler example for the Tycho demo. Or would a maybe simplified version of that cookbook example also be ok? |
Beta Was this translation helpful? Give feedback.
-
@fipro78 I now tried the example and it first failed with
I fixed that by adding
to the
I now changed
to
and the build passes, so it looks like Tycho is not correctly considering the version attribute on buildpath entry. |
Beta Was this translation helpful? Give feedback.
-
I have looked into the IDE problem now and it seems some kind of update problem, what I do is:
So I'm not sure if its a PDE Issue, a JDT issue or a combination. Interestingly the Plugin Dependencies always already show the |
Beta Was this translation helpful? Give feedback.
-
@fipro78 can you try out the latest SDK build if it fixes your issues? |
Beta Was this translation helpful? Give feedback.
-
@laeubi I have created a demo similar to my cookbook example. One difference is that there is now a service API bundle that makes use of the pde.bnd mechanism, and a service impl bundles that makes use of it. The ui bundle is PDE style and consumes the service API. The PR is here: #3845 If I only specify the export via package-info.java, the Tycho build fails, saying in the UI bundle that it cannot resolve But in any case, the application does not work, because the resources in the generated JAR files do not contain the expected resources. There are no service component definitions in an OSGI-INF folder, and also the included MANIFEST.MF is the one you can see in the IDE when opening the pde.bnd. |
Beta Was this translation helpful? Give feedback.
-
@fipro78 thanks for providing a demo, I have now integrated it with the automatic test-suite and added some basic verification: the snapshots should already be deployed, yo if you see any issues let me know (and of course enhance either the demo or the test assertions). |
Beta Was this translation helpful? Give feedback.
-
@laeubi thanks for working on this. I have tested it now locally with the pde-automatic-manifest demo. I downloaded the latest I-build and imported the pde-automatic-manifest workspace. I trigger a "Clean - Build" process, and then I see a compile error, saying the package I then tried to run a Tycho build, and get the following error:
Opening the generated api and impl jars, I still miss the correct MANIFEST.MF files and component xml files. I used the 4.0.8-SNAPSHOT. Are the fixes you applied backported, or do I need to test this with a 5.0.0-SNAPSHOT? There is also a test failure for the 4.0.x, which show exactly the same error: |
Beta Was this translation helpful? Give feedback.
-
@laeubi I just noticed a small issue when updating the version of such a bundle. For the p2 update I simply update all projects from 1.0.0 to 1.1.0. Running the project build afterwards I get the following error:
I I run the build again, it succeeds without an error. Maybe some caching issue? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a PDE project setup to create some Eclipse UI plug-ins. I wanted to add a bundle for some services with the new bnd style, so the OSGi metadata gets automatically generated. I added the requirements in the pde.bnd file, and everything resolves fine in the workspace. But the Tycho build fails at the compilation phase, because it is not able to resolve the dependencies. There are many compilation failures, starting from the import statements.
I use Tycho 4.0.7 with a pomless setup and have a target definition configured to resolve the dependencies of the project.
Does Tycho already support the new project setup with a pde.bnd file?
Do I need a special bundle to be included in the build to make it work?
Do I have to specify the dependencies in an additional way to make them resolveable by Tycho (e.g. a pom.xml file or entries in the build.properties)?
Greez,
Dirk
Beta Was this translation helpful? Give feedback.
All reactions