Skip to main content



      Home
Home » Eclipse Projects » Equinox » Create p2 site mirror without references to origin sites(Create p2 site mirror without references to origin sites)
Create p2 site mirror without references to origin sites [message #1796774] Thu, 18 October 2018 13:35 Go to next message
Eclipse UserFriend
Hello anyone,

I want to setup a updatesite mirror for eclipse updates, using the p2 mirror app org.eclipse.equinox.p2.metadata.repository.mirrorApplication.
But when I install features from my mirror, eclipse adds the origin updates to the "Available software sites".
Can you please tell me how I can cut off this links to origin sites when mirroring them?

Thanks in advance
Markus
Re: Create p2 site mirror without references to origin sites [message #1796813 is a reply to message #1796774] Fri, 19 October 2018 06:09 Go to previous messageGo to next message
Eclipse UserFriend
I don't think you can do this directly with the mirror application itself because I see no options for that. The problem is that this information is embedded in the touch point data in directly in the content metadata. For example, like this:
      <touchpointData size='1'>
        <instructions size='1'>
          <instruction key='configure'>
            org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:0,location:http${#58}//download.eclipse.org/releases/latest,name:Latest Eclipse Release,enabled:false);org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:1,location:http${#58}//download.eclipse.org/releases/latest,name:Latest Eclipse Release,enabled:false);
          </instruction>
        </instructions>
      </touchpointData>
The content metadata is simply copied to your mirror and then of course all the touchpoints, including the addRepository touchpoints are copied. You'd ned to post-process the repository's content metadata to transform or delete the addRepository touchpoints. :-(
Re: Create p2 site mirror without references to origin sites [message #1799845 is a reply to message #1796813] Fri, 14 December 2018 11:44 Go to previous messageGo to next message
Eclipse UserFriend
If I look at JRebel (non eclipse) p2 repo it does not use configure addRepository touchpoints. However, I see these repository elements:
  <references size='2'>
    <repository uri='http://update.zeroturnaround.com/update-site/' url='http://update.zeroturnaround.com/update-site/' type='1' options='1'/>
    <repository uri='http://update.zeroturnaround.com/update-site/' url='http://update.zeroturnaround.com/update-site/' type='0' options='1'/>
  </references>

Is this what need to be changed? Is this documented somewhere?
Re: Create p2 site mirror without references to origin sites [message #1799857 is a reply to message #1799845] Fri, 14 December 2018 18:07 Go to previous messageGo to next message
Eclipse UserFriend
You'd need to change these too, if they are present. Does the mirror application actually preserve these?
Re: Create p2 site mirror without references to origin sites [message #1799858 is a reply to message #1799857] Fri, 14 December 2018 19:04 Go to previous message
Eclipse UserFriend
I replaced the repository uri and url with no effect on the additional sites URL. Yes they are preserved by the mirror application.

[Updated on: Fri, 14 December 2018 19:06] by Moderator

Previous Topic:Multiple dependency chain error for package in same bundle
Next Topic:Help > About Eclipse IDE > Installation details.... is part of P2?
Goto Forum:
  


Current Time: Tue May 13 16:31:50 EDT 2025

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

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

Back to the top