Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:35 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
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 10:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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. :-(


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Create p2 site mirror without references to origin sites [message #1799845 is a reply to message #1796813] Fri, 14 December 2018 16:44 Go to previous messageGo to next message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
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 23:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
You'd need to change these too, if they are present. Does the mirror application actually preserve these?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Create p2 site mirror without references to origin sites [message #1799858 is a reply to message #1799857] Sat, 15 December 2018 00:04 Go to previous message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
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: Sat, 15 December 2018 00:06]

Report message to a 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: Fri Apr 19 22:17:24 GMT 2024

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

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

Back to the top