Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE Product build fails when p2.category.definition set
PDE Product build fails when p2.category.definition set [message #488955] Wed, 30 September 2009 20:28 Go to next message
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
Hi all,
I have a product build that generates final zips for Win32, Linux/GTK/x86,
and OSX/Cocoa/x86_64. These builds work just fine and I get the p2
information generated as well.

My build includes the properties:
product=/product.plugin/myProduct.product
p2.gathering=true
p2.metadata.repo=file:${buildDirectory}/repo
p2.artifact.repo=file:${buildDirectory}/repo
p2.flavor=tooling

This works great. I get my 3 zip files and a /repo directory which if
zipped can be used as an archived p2 update site. The problem is that I
don't have any category information in here so nothing shows up by default
when I load the site into the "Install new software" dialog until I uncheck
the "Group items by category" box.

To get the features to show up, I find out I need to create a category.xml
file. I do this and put it the same plug-in as my .product file. The
category.xml has several categories and includes my top-level features. I
then set the p2.category.definition property to the path of the
category.xml.

When I have have the p2.category.definition pointing to the category.xml my
headless build fails with the following error:

!ENTRY org.eclipse.equinox.p2.director 4 1 2009-09-30 15:47:37.472
!MESSAGE Cannot complete the install because one or more required items
could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-09-30 15:47:37.488
!MESSAGE Software being installed: My Product 1.0.0.200909301544
(my.product.ID 1.0.0.200909301544)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-09-30 15:47:37.488
!MESSAGE Missing requirement for filter (& (osgi.ws=win32) (osgi.os=win32)
(osgi.arch=x86)): DashBoard 3.0.0.200909301544 (my.product.ID
1.0.0.200909301544) requires 'org.eclipse.equinox.launcher.win32.win32.x86
[1.0.200.v20090519]' but it could not be found

I know it's finding the category.xml file as I get a different error if the
URL is wrong. My build also fails if I try to use a site.xml to supply
categories.

Please help.

Thanks,

James
Re: PDE Product build fails when p2.category.definition set [message #489110 is a reply to message #488955] Thu, 01 October 2009 14:18 Go to previous message
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
A brief update: If I remove the p2.category.definition property and
instead, after the install is complete, run the CategoryPublisher
application separately, I can get the categories added to the repository.
It still seems odd that I have to do this as a separate step.

For anyone else out there who experiences this issue, I got the information
for CategoryPublisher from
http://eclipsesource.com/blogs/2009/05/08/categorize-your-re pository/

The important part:
In addition to using the PDE Export wizard, you can also use the
CategoryPublisher, to inject category descriptions into your existing
repositories. This can be invoked as follows:
view sourceprint?
1.-console -consolelog -application
org.eclipse.equinox.p2.publisher.CategoryPublisher
2.-metadataRepository file:/<repo location>/repository
3.-categoryDefinition /<location>/category.xml


"James Peltzer" <jpeltzer@rossvideo.com> wrote in message
news:ha0f0m$nlb$1@build.eclipse.org...
> Hi all,
> I have a product build that generates final zips for Win32, Linux/GTK/x86,
> and OSX/Cocoa/x86_64. These builds work just fine and I get the p2
> information generated as well.
>
> My build includes the properties:
> product=/product.plugin/myProduct.product
> p2.gathering=true
> p2.metadata.repo=file:${buildDirectory}/repo
> p2.artifact.repo=file:${buildDirectory}/repo
> p2.flavor=tooling
>
> This works great. I get my 3 zip files and a /repo directory which if
> zipped can be used as an archived p2 update site. The problem is that I
> don't have any category information in here so nothing shows up by default
> when I load the site into the "Install new software" dialog until I
> uncheck the "Group items by category" box.
>
> To get the features to show up, I find out I need to create a category.xml
> file. I do this and put it the same plug-in as my .product file. The
> category.xml has several categories and includes my top-level features. I
> then set the p2.category.definition property to the path of the
> category.xml.
>
> When I have have the p2.category.definition pointing to the category.xml
> my headless build fails with the following error:
>
> !ENTRY org.eclipse.equinox.p2.director 4 1 2009-09-30 15:47:37.472
> !MESSAGE Cannot complete the install because one or more required items
> could not be found.
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-09-30 15:47:37.488
> !MESSAGE Software being installed: My Product 1.0.0.200909301544
> (my.product.ID 1.0.0.200909301544)
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-09-30 15:47:37.488
> !MESSAGE Missing requirement for filter (& (osgi.ws=win32) (osgi.os=win32)
> (osgi.arch=x86)): DashBoard 3.0.0.200909301544 (my.product.ID
> 1.0.0.200909301544) requires 'org.eclipse.equinox.launcher.win32.win32.x86
> [1.0.200.v20090519]' but it could not be found
>
> I know it's finding the category.xml file as I get a different error if
> the URL is wrong. My build also fails if I try to use a site.xml to
> supply categories.
>
> Please help.
>
> Thanks,
>
> James
>
Re: PDE Product build fails when p2.category.definition set [message #602231 is a reply to message #488955] Thu, 01 October 2009 14:18 Go to previous message
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
A brief update: If I remove the p2.category.definition property and
instead, after the install is complete, run the CategoryPublisher
application separately, I can get the categories added to the repository.
It still seems odd that I have to do this as a separate step.

For anyone else out there who experiences this issue, I got the information
for CategoryPublisher from
http://eclipsesource.com/blogs/2009/05/08/categorize-your-re pository/

The important part:
In addition to using the PDE Export wizard, you can also use the
CategoryPublisher, to inject category descriptions into your existing
repositories. This can be invoked as follows:
view sourceprint?
1.-console -consolelog -application
org.eclipse.equinox.p2.publisher.CategoryPublisher
2.-metadataRepository file:/<repo location>/repository
3.-categoryDefinition /<location>/category.xml


"James Peltzer" <jpeltzer@rossvideo.com> wrote in message
news:ha0f0m$nlb$1@build.eclipse.org...
> Hi all,
> I have a product build that generates final zips for Win32, Linux/GTK/x86,
> and OSX/Cocoa/x86_64. These builds work just fine and I get the p2
> information generated as well.
>
> My build includes the properties:
> product=/product.plugin/myProduct.product
> p2.gathering=true
> p2.metadata.repo=file:${buildDirectory}/repo
> p2.artifact.repo=file:${buildDirectory}/repo
> p2.flavor=tooling
>
> This works great. I get my 3 zip files and a /repo directory which if
> zipped can be used as an archived p2 update site. The problem is that I
> don't have any category information in here so nothing shows up by default
> when I load the site into the "Install new software" dialog until I
> uncheck the "Group items by category" box.
>
> To get the features to show up, I find out I need to create a category.xml
> file. I do this and put it the same plug-in as my .product file. The
> category.xml has several categories and includes my top-level features. I
> then set the p2.category.definition property to the path of the
> category.xml.
>
> When I have have the p2.category.definition pointing to the category.xml
> my headless build fails with the following error:
>
> !ENTRY org.eclipse.equinox.p2.director 4 1 2009-09-30 15:47:37.472
> !MESSAGE Cannot complete the install because one or more required items
> could not be found.
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-09-30 15:47:37.488
> !MESSAGE Software being installed: My Product 1.0.0.200909301544
> (my.product.ID 1.0.0.200909301544)
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-09-30 15:47:37.488
> !MESSAGE Missing requirement for filter (& (osgi.ws=win32) (osgi.os=win32)
> (osgi.arch=x86)): DashBoard 3.0.0.200909301544 (my.product.ID
> 1.0.0.200909301544) requires 'org.eclipse.equinox.launcher.win32.win32.x86
> [1.0.200.v20090519]' but it could not be found
>
> I know it's finding the category.xml file as I get a different error if
> the URL is wrong. My build also fails if I try to use a site.xml to
> supply categories.
>
> Please help.
>
> Thanks,
>
> James
>
Previous Topic:Trouble deploying a searchPages extention
Next Topic:Interpolating properties into .product file
Goto Forum:
  


Current Time: Tue Apr 23 16:09:31 GMT 2024

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

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

Back to the top