HOWTO: Create an archived p2 repo
Generating a p2 repo can be done a number of ways, from the trivial case for a single feature build (add p2.gathering=true into your build.properties file, as discussed with slides and working sample here, to the more elaborate, with signed & packed jars (eg., using the buildUpdate task here).
Just bear in mind one caveat: while packed features work great on a regular p2 repo (eg., http://download.eclipse.org/modeling/emf/updates/milestones/, you cannot yet include packed features in the archive, only packed plugins.
If you want to produce an archived p2 repo but don’t care how it’s done… try an Athena build, and you’ll get one generated for you for free (as long as you enable the buildUpdate task to be run via your build.properties. If you’ve never tried Athena, I suggest downloading the slides & exercises and trying it for yourself (bottom of the page).
Should you want an unzipped version of your p2 repo published on download.eclipse.org (eg., so it can be consumed by EPP or Galileo), watch bug 266374. I’m working on improving this currently manual process - copy zip then unzip zip - so it’ll be less effort and more automated.
As always, feedback & contributions welcome.
Posted April 10th, 2009 by Nick Boldt in category: misc
You can skip to the end and leave a response. Pinging is currently not allowed.
Leave a Reply
You must be logged in using your Eclipse Bugzilla account to post a comment.

