Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Prevent p2 materializer from contacting other sites
Prevent p2 materializer from contacting other sites [message #385517] Wed, 27 May 2009 13:34 Go to next message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Hi,

We have a local mirror of the Ganymede update site behind our firewall. The
mirror is built using p2's site mirroring capabilities. I use the
eclipse.import reader with an http://... URL. Unfortunately, file:/...
access is not possible, but still, intranet http access should be an
improvement over http access to ecipse.org.

I then used the p2 materializer to fetch some features from this mirror. My
first attempts led to Buckminster hanging indefinitely (both headless and
regular IDE installation). After a while I found out that it tried to
download something from www.eclipse.org. I must assume that this is due to
the p2 materializer, because the old targetPlatform materializer worked
fine.

Setting a proxy solved my problem, of course. But I wonder if there is a way
to prevent the p2 materializer from contacting other sites? This is not only
for performance reasons. If external sources are taken into account, can I
really be sure that Buckminster fetches only the things provided on our
local mirror?

Cheers,
Achim
Re: Prevent p2 materializer from contacting other sites [message #385518 is a reply to message #385517] Thu, 28 May 2009 05:46 Go to previous message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Hi,

a good night's sleep and some more digging in the p2 documentation revealed
the following:

1) Setting the system property eclipse.p2.mirrors to false will completely
prevent any automatic mirror selection.
2) Providing a policy.xml file on our mirror update site gives more fine-
grained control over mirror selection.

See http://wiki.eclipse.org/Using_Policy_Files

Sorry for the noise.

Achim

Achim Demelt wrote:

> Hi,
>
> We have a local mirror of the Ganymede update site behind our firewall.
> The mirror is built using p2's site mirroring capabilities. I use the
> eclipse.import reader with an http://... URL. Unfortunately, file:/...
> access is not possible, but still, intranet http access should be an
> improvement over http access to ecipse.org.
>
> I then used the p2 materializer to fetch some features from this mirror.
> My first attempts led to Buckminster hanging indefinitely (both headless
> and regular IDE installation). After a while I found out that it tried to
> download something from www.eclipse.org. I must assume that this is due to
> the p2 materializer, because the old targetPlatform materializer worked
> fine.
>
> Setting a proxy solved my problem, of course. But I wonder if there is a
> way to prevent the p2 materializer from contacting other sites? This is
> not only for performance reasons. If external sources are taken into
> account, can I really be sure that Buckminster fetches only the things
> provided on our local mirror?
>
> Cheers,
> Achim
Previous Topic:troubles with headless importtarget/importtargetdefintiion
Next Topic:Question on Site Creation and Targets
Goto Forum:
  


Current Time: Thu Apr 25 09:09:06 GMT 2024

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

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

Back to the top