Mirroring repositories with p2

p2 provides two applications that allow one to mirror the content of remote repositories locally.

Mirroring an artifact repository

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/

Arguments Description

Mirroring a metadata repository

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/

Arguments Description