What is 'the' way to add a bundle jar to a p2 based Eclipse target platform?
Asked Answered
G

1

2

I'm wondering: What is the best way of adding a bundle to a p2 based target platform? I don't want to use local directories, I want to have a target platform that works 'out of the box' for all our team members.

Right now I manage, but I have a feeling I'm missing a more straightforward way of doing this.

My situation is as follows:

My target platform has a bunch of p2 locations, hosted at our on-site server. Most are mirrored repositories, but I have one I use for 'miscellaneous' bundles.

This is how I add a bundle to the target platform.

  • I switch to another workspace, which does use a bundle directory with jars.
  • I add the bundle jar to that directory.
  • I add the bundle to my 'third party' feature
  • I export the feature, and upload it to our server, deleting the old one
  • I switch back to my normal workspace, and reload the target platform link.

Sometimes eclipse gets a bit confused and keeps using a cached version, but in general this approach works.

My question:

Is there a easier way? Is there a more 'incremental' way? I rebuild the p2 repository, instead of adding a feature with a new version.

Gymnosperm answered 17/4, 2012 at 12:52 Comment(0)
V
1

You should have a look at p2's publisher and mirror tools. The publisher creates p2 metadata, and with the mirroring, you can copy artifacts into an existing p2 repository (given you have file system access).

There is also a Maven front-end to these tools provided by the Tycho project.

Vane answered 9/7, 2013 at 11:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.