Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353757

Summary: Graphiti p2 repository not suitable as local cache
Product: [Modeling] Graphiti Reporter: Tobias Oberlies <t-oberlies>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P4 CC: michael.wenz
Version: 0.8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Tobias Oberlies CLA 2011-08-03 09:04:10 EDT
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
Comment 1 Michael Wenz CLA 2011-08-29 04:54:48 EDT
Thanks for the suggestion, we will have a look
Comment 2 Michael Wenz CLA 2018-04-27 08:50:45 EDT
Since Graphiti switched to a CBS build, we do no longer define any mirrors, so this should no longer be a problem.
Comment 3 Michael Wenz CLA 2022-03-17 12:11:10 EDT
Closing resolved ticket.