p2 provides two applications that allow one to mirror the content of remote repositories locally.
The artifact mirroring application allows to duplicate a complete artifact repository into a target one. To perform this operation you simply need an eclipse installation that contains the org.eclipse.equinox.p2.artifact.repository bundle. The following command will copy the complete source repository into the destination one.
<eclipseInstall>\eclipse.exe
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
-source http://download.eclipse.org/releases/ganymede
-destination file:d:/artifactLocalRepository/
The metadata mirroring application allows to duplicate a complete metadata repository into a target one. To perform this operation you simply need an eclipse installation that contains the org.eclipse.equinox.p2.metadata.repository bundle. The following command will copy the complete source repository into the destination one.
<eclipseInstall>\eclipse.exe
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication
-source http://download.eclipse.org/releases/ganymede
-destination file:d:/metadataLocalRepository/