[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Standalone p2 usage (outside eclipse)

Hi Katya,

We at wso2 successfully managed to do almost what you wanted to do. We have integrated p2 in to our carbon platform with the minimum set of bundles possible to able to install p2 features through the director app commands. for more information on this pls follow the mail [1]


[1] http://dev.eclipse.org/mhonarc/lists/p2-dev/msg01898.html

On Thu, Jul 23, 2009 at 12:25 PM, Todorova, Katya <katya.todorova@xxxxxxx> wrote:
Thank you for the links, they're very useful.
My intention is to use p2 programatically - not via UI nor command line. Since now I don't have any issues running it.
My question was more about the coupling between p2 and eclipse. It's ok to use OSGi bundles that are distributed with eclipse as long as they have org.eclipse.equinox in bundle name. What's bothering me is the presence of org.eclipse.core (i.e) - by naming I assume that they provide eclipse specific functionality. Such bundles present in both links you provide.
Anyway, since I don't need to get the whole eclipse in order to use p2, it's ok for me.
Thanks again for clarifying

From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Thomas Hallgren
Sent: Thursday, July 23, 2009 1:33 AM
To: P2 developer discussions
Subject: [LIKELY JUNK]Re: [p2-dev] Standalone p2 usage (outside eclipse)

An even smaller, platform independent packaging, that contains only the command line version of the P2 director app can be found here:


Pascal,  I think that one too should be available from the Equinox download page. It's a bit awkward that we distribute it from Buckminster.

Thomas Hallgren

Pascal Rapicault wrote:

p2 can be run outside of eclipse, however p2 uses some other OSGi bundles that are delivered as part of eclipse such as the org.eclipse.equinox.common, org.eclipse.equinox.registry and a few others. This does not mean that you need a UI nor that you have to bring all of eclipse.
A good place to start for looking at what p2 needs is to take a look at the p2 installer which is a few select pieces of p2 plus a very simple SWT based UI. It can be found here: http://download.eclipse.org/equinox/drops/R-3.5-200906111540/download.php?dropFile=equinox.p2.installer-3.5-win32.win32.x86.zip


Inactive hide details for "Todorova, Katya" ---07/22/2009 12:52:52 PM---Hi guys,"Todorova, Katya" ---07/22/2009 12:52:52 PM---Hi guys,


"Todorova, Katya" <katya.todorova@xxxxxxx>


"P2 developer discussions" <p2-dev@xxxxxxxxxxx>


07/22/2009 12:52 PM


[p2-dev] Standalone p2 usage (outside eclipse)

Hi guys,

I'm trying to use p2 as a provisioning system outside eclipse.
I thought is that it would be sufficient to take all the p2 bundles, install them in OSGi framework (started as java -jar <equinox.jar>) and everything would be just fine. But what I faced is that p2 bundles require bundles that are part from eclipse (considring bundle name, i.e org.eclipse.core.runtime.jar).
So I'm wondering if p2 is designed only for eclipse internal usage? And if not are there any requirements what exactly you need to have on your system in order to get p2 running? Are there any known limitations with regards to such usage?

Thanks in advance,
p2-dev mailing list

_______________________________________________ p2-dev mailing list p2-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/p2-dev

p2-dev mailing list