[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] Help with creating P2 update site
- From: Nick Boldt <nickboldt@xxxxxxxxx>
- Date: Fri, 02 Oct 2009 15:27:48 -0400
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=tTwrhMGih8VTsPgQMvP2PcQevjD+WT8Oz93Qj9xrQHwWHV/1Ow+JUgEJqHD6LCdksL B5WmzzAw7M+4ucuMN3orhIOaRFeuIFCctmYbqUHsyM7BVzVDjPnJdgVOC/dO6AVjrvu5 KJgLyTH7XRX6NHdeo+SbIPXeC3iyb5HTCGnss=
- User-agent: Thunderbird 126.96.36.199 (X11/20090605)
Assuming you need to build, and *rebuild* this once in a while, and have
little overhead involved in doing so, have you considered doing a
headless (not with Eclipse PDE/UI) build, and generating an update site zip?
Easiest way to do that, IMHO, is to use Athena. It will also run your
JUnit Plugin Tests, if you have any, as part of the build. If you're on
Linux. (On Mac/Win, YMMV.)
Getting started w/ an Athena-style build (which is really Eclipse
PDE/Build wrapped with some goodies to make it easier):
The sample project outlined there is for the GEF project; once you get
it working, you can use the same concept to do a build for your own
plugins/features, and by default you'll end up with an update site zip
(complete with p2 metadata). Unpack that zip onto some server, and voom
- update site!
Only requirement is that you create a feature which contains everything
you want on the site, often called the "all-in-one" or "master" feature.
It can contain both features & plugins (feature.*, plugin.*, fragments).
Once you have it working in Eclipse, you can then wrap it with some CI
engine (like Hudson, Cruise Control, etc.) and have it run automatically
on a schedule or when your sources change.
If you have any problems, don't hesitate to ask here or in
Kristina Taylor wrote:
I asked about this a while back, but got sidetracked with other work
before I could figure it out. If this is the wrong place to ask, please
point me to the right place.
I have a feature that has several plugins and plugin fragments, that was
originally developed for 3.2. It's been updated along the way, but it
continues to work with every version of Eclipse since then, up until now
(3.5). It will install and runs just fine on Eclipse 3.5, but only if
installed via the classic updates capability (by adding an extension
location). I want to get it to work properly with p2. I'm assuming
that the best way to do this is to create a proper update site, but the
tools are creating something uninstallable.
I have this dependency structure: feature.a provides plugin.b,
plugin.c, plugin.d. plugin.b is independent (help content). plugin.c
requires plugin.d. I have two plugin fragments (language packs) for
plugin.c and plugin.d.
I created an update site in Eclipse, using the wizard, and basically
just left everything as generated. I added feature.a and clicked
build. It generates a feature.a.version.jar file in a features
directory, and the plugin.b.version.jar, plugin.c.version.jar and
plugin.d.version.jar files in a plugins directory. Neither c or d seem
to have any reference to their fragments, and while that's not my
primary concern right now, I would like to know how to make sure those
are included properly. It also generates an artifacts.jar and
content.jar, which each contain xml files of the same name. I can send
copies if these files would be useful in solving my problem. Speaking
My problem: everything appears to build and generate without issues, but
I can't install from the update site. I get 4 errrors, all identical:
-> Cannot complete the install because one or more required
items could not be found.
-> Missing requirement: 1254503723371
0.0.0.1254503723371 requires 'feature.a.feature.group [4.10.1]' but it
could not be found
I have nothing named anything like "feature.group", and the ID of the
"plugin" that it's complaining about appears to be the timestamp of the
attempted install (it's different each time I try to install, even if I
haven't rebuilt in between). What's going on?
Software Developer, MKS Inc.
Waterloo, ON, Canada
519 883 3478
p2-dev mailing list
Nick Boldt :: http://nick.divbyzero.com
Release Engineer :: Eclipse Modeling & Dash Athena