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

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:

https://github.com/sonatype/docker-nexus/issues/9

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’

Brian.


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:

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

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
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top