[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Re: How to generate p2 metadata for exported product?

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-for-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