Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho mirror goal and category.xml


actually you could do the same with Eclipse Package Drone [1].

I does extract OSGi metadata and can build up a P2 or OSGi R5 repository. You can upload a fully zipped P2 repository, import from Maven (Central), deploy with Maven/Gradle or upload your artifacts manually.



On 06/16/2016 04:36 PM, Brian de Alwis wrote:
Save yourself some grief and just use Nexus with its p2 proxy support to proxy those repositories.  There’s some details at:

And there’s an example of setting up Nexus with the p2 plugins using docker at:

The p2 bridge plugin adds the ability to grovel through artifacts for OSGi metadata and expose them as a generated p2 repository.  There’s very little documentation about this, and Sonatype seems to have pulled the nexus-p2-bridge-plugin and nexus-p2-repository-plugin from their public github site.  As I recall, you have to add the P2 Metadata Generator and P2 Aggregator Generator capabilities for each Maven repository, which then exposes the bundles found as a p2 repo at ‘http://localhost:8081/nexus/content/repositories/central/.meta/p2’


On 16-Jun-2016, at 9:00 AM, jdevgl@xxxxxxxxx wrote:

Hi :)

I would like to mirror several public p2 repositories, host them with tomcat and finally use them in a target to build my RCP application.

I read the documentation about the mirror goal of tycho extras plugin. The pom is correct and the copy seems to work correctly but there is no category.xml file downloaded from the original p2 repository. As a consequence, I can't add these repositories to my target file in Eclipse. The "Add Software site" wizard tells me that there are no categorized items and if I uncheck the "group by category" checkbox, it tells me that there are no items available.

I've used the Reficio p2 maven plugin to create my own p2 repository with a few bundles. This plugin generates a category.xml file with the following content:

   <category-def name="all" label="Maven osgi-bundles"/>
       <category name="all"/>
           <_expression_ type="match">providedCapabilities.exists(p | p.namespace == 'osgi.bundle')</_expression_>

I tried to use this category.xml for the mirrored repositories but it doesn't seems to work...

So how can I retrieve the category.xml for these repositories or is there a way to create a default one?

Best regards :)

tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

D-85235 Pfaffenhofen an der Glonn
Läutenring 43
Geschäftsführer / CEO: Dr. Thomas Heitzig

Amtsgericht München
Handelsregister Nummer  HRB 197959
USt ID: DE267945175

Office Munich
D 80992 München
Agnes-Pockels-Bogen 1
T +49 89 18 9 17 49 0

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or pivileged
material. Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.

Back to the top