Community
Participate
Working Groups
The p2 repository with Graphiti 0.8.0 [1] cannot be used as a local cache (e.g. in order to speed up builds etc.). The reason is that the artifacts.xml specifies a p2.mirrorsURL, and as a result, p2 clients accessing the local copy of the p2 repository are redirected to mirrors outside of the corporate network. Steps to reproduce: 1. Download the Graphiti p2 repository 2. Extract it on an http server 3. Install Graphiti into an Eclipse installation from the http server In the progress (or through a network sniffer) you can see that the artifacts are not downloaded from the local http server but rather from external mirrors I know that there are workarounds (like -Declipse.p2.mirrors=false), but I still think that the downloadable p2 repository should work out of the box. I know that you need to specify the p2.mirrorsURL for the repository on eclipse.org, but I think I found a solution for this problem: You should additionally set the property p2.mirrorsBaseURL to "http://download.eclipse.org/graphiti/updates/0.8.0/". In this way (if I understand the code correctly), p2 will only use mirrors if the original URL starts with the specified base, i.e. if the repository is hosted at Eclipse. You should try this out :-) [1] http://www.eclipse.org/downloads/download.php?file=/graphiti/archives/0.8.0/org.eclipse.graphiti.site_0.8.0.201106071252.zip
Thanks for the suggestion, we will have a look
Since Graphiti switched to a CBS build, we do no longer define any mirrors, so this should no longer be a problem.
Closing resolved ticket.