Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to generate p2 metadata for exported product?
How to generate p2 metadata for exported product? [message #123849] Wed, 07 January 2009 15:03 Go to next message
Eclipse UserFriend
Originally posted by: bsv.datatel.com

When I run the Export wizard against a .product that has a dependency on
the org.eclipse.platform feature, I get all the p2 plugins included in
the export. I'm able to see the Software Updates menu item. But clicking
on it results in this message:

"Cannot launch the Update UI. This installation has not been configured
properly for Software Updates."

There is also this in the log:

!ENTRY org.eclipse.equinox.p2.ui.sdk 2 0 2009-01-07 10:01:12.549
!MESSAGE Could not locate the running profile instance. The
eclipse.p2.data.area and eclipse.p2.profile properties may not be set
correctly in this application's config.ini file.

Now I'm noticing that there is in fact no p2 data area in the exported
product output. I suspect the error I'm seeing is the one referenced in
this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=221513

Is there a flag that should be set on the build.properties file to
trigger the generation of p2 metadata?

Thanks
Ben
Re: How to generate p2 metadata for exported product? [message #123877 is a reply to message #123849] Wed, 07 January 2009 17:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Ben,

Too bad the zips exported by the PDE Product Export Wizards don't have
this already. From what I understand you will have to:
1. Generate P2 Repository
2. Create a P2ize product

For #1 there are three approaches:
a. With the PDE Product Export Wizard you can select the option to
generate a repository when you do the product export.
b. There are facilities for PDE Build to do this as well. Here is an
excellent recipe for PDE Build to do both #1 and #2 at:
http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html
c. Use the P2 Metadata Generator

For #2 you can do this from the p2 Repository you created in #1. Again
I think there are basically 3 ways to do this:
a. The P2 Installer
http://wiki.eclipse.org/Equinox_p2_Installer

b. The P2 Headless Director
http://wiki.eclipse.org/Equinox_p2_director_application

c. The P2 AdminUI (Haven't tried this way myself though I think it
should work.)
http://wiki.eclipse.org/Equinox_p2_Admin_UI_Users_Guide


Also see the previous 12/15/2008 news group message with subject
'Eclipse with P2'.

cheers,

John

Ben Vitale wrote:
> When I run the Export wizard against a .product that has a dependency on
> the org.eclipse.platform feature, I get all the p2 plugins included in
> the export. I'm able to see the Software Updates menu item. But clicking
> on it results in this message:
>
> "Cannot launch the Update UI. This installation has not been configured
> properly for Software Updates."
>
> There is also this in the log:
>
> !ENTRY org.eclipse.equinox.p2.ui.sdk 2 0 2009-01-07 10:01:12.549
> !MESSAGE Could not locate the running profile instance. The
> eclipse.p2.data.area and eclipse.p2.profile properties may not be set
> correctly in this application's config.ini file.
>
> Now I'm noticing that there is in fact no p2 data area in the exported
> product output. I suspect the error I'm seeing is the one referenced in
> this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=221513
>
> Is there a flag that should be set on the build.properties file to
> trigger the generation of p2 metadata?
>
> Thanks
> Ben
Re: How to generate p2 metadata for exported product? [message #125075 is a reply to message #123877] Thu, 22 January 2009 21:09 Go to previous messageGo to next message
Martin Schmitz is currently offline Martin SchmitzFriend
Messages: 23
Registered: July 2009
Junior Member
Am 07.01.2009 18:42, schrieb John E. Conlon:
> Ben,
>
> Too bad the zips exported by the PDE Product Export Wizards don't have
> this already. From what I understand you will have to:
> 1. Generate P2 Repository
> 2. Create a P2ize product
>
> For #1 there are three approaches:
> a. With the PDE Product Export Wizard you can select the option to
> generate a repository when you do the product export.
> b. There are facilities for PDE Build to do this as well. Here is an
> excellent recipe for PDE Build to do both #1 and #2 at:
> http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html
>
> c. Use the P2 Metadata Generator
>
> For #2 you can do this from the p2 Repository you created in #1. Again I
> think there are basically 3 ways to do this:
> a. The P2 Installer
> http://wiki.eclipse.org/Equinox_p2_Installer
>
> b. The P2 Headless Director
> http://wiki.eclipse.org/Equinox_p2_director_application
>
> c. The P2 AdminUI (Haven't tried this way myself though I think it
> should work.)
> http://wiki.eclipse.org/Equinox_p2_Admin_UI_Users_Guide
>
>
> Also see the previous 12/15/2008 news group message with subject
> 'Eclipse with P2'.
>
> cheers,
>
> John
>
> Ben Vitale wrote:
>> When I run the Export wizard against a .product that has a dependency
>> on the org.eclipse.platform feature, I get all the p2 plugins included
>> in the export. I'm able to see the Software Updates menu item. But
>> clicking on it results in this message:
>>
>> "Cannot launch the Update UI. This installation has not been
>> configured properly for Software Updates."
>>
>> There is also this in the log:
>>
>> !ENTRY org.eclipse.equinox.p2.ui.sdk 2 0 2009-01-07 10:01:12.549
>> !MESSAGE Could not locate the running profile instance. The
>> eclipse.p2.data.area and eclipse.p2.profile properties may not be set
>> correctly in this application's config.ini file.
>>
>> Now I'm noticing that there is in fact no p2 data area in the exported
>> product output. I suspect the error I'm seeing is the one referenced
>> in this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=221513
>>
>> Is there a flag that should be set on the build.properties file to
>> trigger the generation of p2 metadata?
>>
>> Thanks
>> Ben

Can anybody confirm this solution?

Thanks
Martin
Re: How to generate p2 metadata for exported product? [message #125109 is a reply to message #125075] Fri, 23 January 2009 11:47 Go to previous message
Rich Scott is currently offline Rich ScottFriend
Messages: 63
Registered: July 2009
Member
Martin,

To include the p2 information into the the product export, all that you
need to do is the check the "Generate metadata repository" checkbox on the
export wizard page. This will result in a "repository" directory under the
specified destination that contains the export product along with
generated p2 metadata.

The only other thing that must be done is the product must be installed
using either p2installer or p2director. This will setup the runtime
environment to support p2 updates.

Rich Scott


Martin Schmitz wrote:

> Am 07.01.2009 18:42, schrieb John E. Conlon:
>> Ben,
>>
>> Too bad the zips exported by the PDE Product Export Wizards don't have
>> this already. From what I understand you will have to:
>> 1. Generate P2 Repository
>> 2. Create a P2ize product
>>
>> For #1 there are three approaches:
>> a. With the PDE Product Export Wizard you can select the option to
>> generate a repository when you do the product export.
>> b. There are facilities for PDE Build to do this as well. Here is an
>> excellent recipe for PDE Build to do both #1 and #2 at:
>>
http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html
>>
>> c. Use the P2 Metadata Generator
>>
>> For #2 you can do this from the p2 Repository you created in #1. Again I
>> think there are basically 3 ways to do this:
>> a. The P2 Installer
>> http://wiki.eclipse.org/Equinox_p2_Installer
>>
>> b. The P2 Headless Director
>> http://wiki.eclipse.org/Equinox_p2_director_application
>>
>> c. The P2 AdminUI (Haven't tried this way myself though I think it
>> should work.)
>> http://wiki.eclipse.org/Equinox_p2_Admin_UI_Users_Guide
>>
>>
>> Also see the previous 12/15/2008 news group message with subject
>> 'Eclipse with P2'.
>>
>> cheers,
>>
>> John
>>
>> Ben Vitale wrote:
>>> When I run the Export wizard against a .product that has a dependency
>>> on the org.eclipse.platform feature, I get all the p2 plugins included
>>> in the export. I'm able to see the Software Updates menu item. But
>>> clicking on it results in this message:
>>>
>>> "Cannot launch the Update UI. This installation has not been
>>> configured properly for Software Updates."
>>>
>>> There is also this in the log:
>>>
>>> !ENTRY org.eclipse.equinox.p2.ui.sdk 2 0 2009-01-07 10:01:12.549
>>> !MESSAGE Could not locate the running profile instance. The
>>> eclipse.p2.data.area and eclipse.p2.profile properties may not be set
>>> correctly in this application's config.ini file.
>>>
>>> Now I'm noticing that there is in fact no p2 data area in the exported
>>> product output. I suspect the error I'm seeing is the one referenced
>>> in this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=221513
>>>
>>> Is there a flag that should be set on the build.properties file to
>>> trigger the generation of p2 metadata?
>>>
>>> Thanks
>>> Ben

> Can anybody confirm this solution?

> Thanks
> Martin
Previous Topic:How can I set a new secure storage location in the preference page
Next Topic:I have managed to deploy p2-ed product using P2 installer from my repository whi
Goto Forum:
  


Current Time: Tue Mar 19 04:30:58 GMT 2024

Powered by FUDForum. Page generated in 0.01406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top