Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse
Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #635758] Thu, 28 October 2010 01:39 Go to next message
Lindsay Smith is currently offline Lindsay SmithFriend
Messages: 6
Registered: October 2010
Junior Member
I've tried to use the FeaturesAndBundlesPublisher guide here:

http://wiki.eclipse.org/Equinox/p2/Publisher#Features_And_Bu ndles_Publisher_Application

to build a repository from a set of osgi bundles that I have on the file system. The command returns ok, and builds me a folder with the content.jar, artifacts.jar, and the plugins folder. My bundles are listed in the artifacts and contents files, so everything looks ok.

However, I can't seem to use the repository from inside eclipse. I have created a new target platform, and I add the repository I created through the 'Add Content' wizard, selecting 'Software Site', then adding the folder as a local repository from the site dropdown.

I would expect the list of bundles in the repository to appear in the list, but there is nothing there. It just says 'There are no items available' .

Am I misunderstanding how this is supposed to work? Is the repository created that way supposed to be used as a software site within eclipse?

Thanks
Re: Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #635863 is a reply to message #635758] Thu, 28 October 2010 11:51 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I think you need to uncheck "Group Items by Category" to see the
features from the site.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #635979 is a reply to message #635758] Thu, 28 October 2010 19:57 Go to previous messageGo to next message
Lindsay Smith is currently offline Lindsay SmithFriend
Messages: 6
Registered: October 2010
Junior Member
I've tried with "Group Items by Category" both checked and unchecked, it doesn't display any content.

In your post you say 'to see the features from the site' - the repository that I have created only contains bundles - no features. Should I still be able to view them when treating this repository as a software site?

What I'm trying to do is create a Target Definition from the bundles I have, so that I can then create features from them. Am I on the right track?

Thanks
Re: Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #636226 is a reply to message #635979] Fri, 29 October 2010 18:25 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Lindsay Smith wrote:
> I've tried with "Group Items by Category" both checked and unchecked, it
> doesn't display any content.
>
> In your post you say 'to see the features from the site' - the
> repository that I have created only contains bundles - no features.
> Should I still be able to view them when treating this repository as a
> software site?

AFAIK the UI will not display bundle IUs. Only feature based ones.
It's still a valid p2 repo, and tools like the p2 director can install
IUs found in bundle-only p2 repos.

> What I'm trying to do is create a Target Definition from the bundles I
> have, so that I can then create features from them. Am I on the right
> track?

When I edit a target definition, one of the options available is under
"Add" is Directory ... it'll just load the plugins from there. Is that
not sufficient for making your target platform?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #636377 is a reply to message #635758] Sun, 31 October 2010 21:21 Go to previous messageGo to next message
Lindsay Smith is currently offline Lindsay SmithFriend
Messages: 6
Registered: October 2010
Junior Member
Thanks for the clarification.

The 'directory' option works fine for the local file situation, but I'm investigating using the feature publisher to create a site that can be shared via http.

I'm trying to work out if the eclipse/p2 build system is useful to our project which is a vanialla OSGI application, not an eclipse application.

The product is built up from third party and authored bundles, and I'm trying to bootstrap the whole thing. To create a target definition I need to select the bundles that are used - and it makes sense to me to have a site that those bundles can be pulled from. Our authored bundles can be developed and tested in isolation, and then when released could be made available from the site.

Downloading the bundles on the developers machine is cumbersome, it seems that having a shared site where all the third party bundles can be found would make sense, but it doesn't seem to support this.

Can anyone provide information about how I should approach this?

Re: Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #636466 is a reply to message #636377] Mon, 01 November 2010 13:30 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ah, OK.

We have a component called orbit, which hosts 3rd party jars (turned
into bundles). Each build generates a p2 repo, and they show up
correctly in the Target install from site dialog. They don't use
features, but use a category.xml to show all of the bundles.

ex:
http://download.eclipse.org/tools/orbit/downloads/drops/R201 00519200754/repository


For an example of the category.xml, see:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.orbit/o rg.eclipse.orbit.releng/maps/category.xml?root=Tools_Project &view=co&content-type=text/plain

I was able to generate a useful p2 site from a directory of bundles and
this content.xml:
<?xml version="1.0" encoding="UTF-8"?>
<site>
<category-def name="all" label="All My Bundles"/>
<iu>
<category name="all"/>
<query><expression type="match">providedCapabilities.exists(p |
p.namespace == 'osgi.bundle')</expression></query>
</iu>
</site>


and then:
$ECLIPSE \
-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
-data tmp_ws -noSplash \
-metadataRepository file:$REPO \
-artifactRepository file:$REPO \
-bundles $HOME/pluginTest/plugins \
-publishArtifacts


$ECLIPSE \
-application org.eclipse.equinox.p2.publisher.CategoryPublisher \
-data tmp_ws -noSplash \
-metadataRepository file:$REPO \
-categoryDefinition file:$(pwd)/category.xml




--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Repository created by FeaturesAndBundlesPublisher doesn't show any items inside eclipse [message #636553 is a reply to message #635758] Mon, 01 November 2010 20:41 Go to previous message
Lindsay Smith is currently offline Lindsay SmithFriend
Messages: 6
Registered: October 2010
Junior Member
Many thanks Paul, this is exactly what I needed to know. I have the local site working now, and the orbit project gives me a great example of the kind of bundle sharing site that I'm investigating for our internal project.

Thanks again, you've been a great help.

Lindsay
Previous Topic:service registry with many similar services
Next Topic:"Patch fragment" vs. Equinox Transform Hooks
Goto Forum:
  


Current Time: Thu Apr 18 13:36:04 GMT 2024

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

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

Back to the top