-
Notifications
You must be signed in to change notification settings - Fork 16
Mirroring Eclipse Repositories
javierfernandes edited this page Dec 7, 2015
·
1 revision
This will mirror an eclipse p2 site locally (a p2 file is what we called "update site" before). Having it locally will reduce the time of the build.
- Mirror the site using an eclipse command
- Configure maven settings to use the mirror
You need to run eclipse specifying a particular application that does the mirroring. It also expects two parameters:
- -source: the updatesite url
- -destination: where to store the mirror (a path in the form "file:/some/folder/")
~/dev/soft/ide/wollok/Eclipse.app/Contents/MacOS/eclipse -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source http://download.eclipse.org/releases/mars/201506241002/ -destination file:`pwd`
Notice:
- You need to change the path to your eclipse executable
- __I'm storing the mirror in my current bash path using the
pwd
command
Now we need to mirror the metadata. Notice that the command line is pretty similar, just that part of the package of the "mirrorApplication" changed from "artifacts" to "metadata"
~/dev/soft/ide/wollok/Eclipse.app/Contents/MacOS/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source http://download.eclipse.org/releases/mars/201506241002/ -destination file:`pwd`
More info here
<settings>
<mirrors>
<mirror>
<id>Mars_mirror</id>
<mirrorOf>Mars</mirrorOf>
<name>Local mirror of Mars repository</name>
<url>file://home/vogella/Marsclone</url>
<layout>p2</layout>
<mirrorOfLayouts>p2</mirrorOfLayouts>
</mirror>
</mirrors>
</settings>