Skip to main content

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

You read about this issue at [1]. It seems that the local installation has some issues with Eclipse P2 and HTTPS. Which works in general but not in this situation. So of anyone has an idea. I am glad to hear it.

Thanks

[1] https://www.eclipse.org/forums/index.php/m/1735311/

On 06/17/2016 06:16 AM, Vadim Peretokin wrote:
P2 support is not available in the next-gen Nexus 3 either and won't be, so I wouldn't build existing solutions on top of it. We've had major performance and stability issues using it in Nexus 2 as well. I've been checking out Package Drone for that exact reason (not with much success as of yet, but at least way more promising than Nexus).

On 17/06/16 01:27, Justin Georgeson wrote:

A note about the P2 generator plugins, they don’t preserve p2.inf requirements with a platform filter (used for automatically installing relevant platform fragment when a consumer installs the host bundle). A defect was entered for it

 

https://issues.sonatype.org/browse/NEXUS-8054

 

which was closed as WONTFIX as P2 support is to be “rebuilt on CMA”.

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Brian de Alwis
Sent: Thursday, June 16, 2016 9:37 AM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: [EXTERNAL] 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

 


This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.



Important: This transmission is intended only for the use of the addressee and may contain confidential or legally privileged information. If you are not the intended recipient, you are notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error please notify the author immediately and delete all copies of this transmission.

_______________________________________________
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


-- 
IBH SYSTEMS GmbH
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