Mirroring repositories with p2

p2 provides two applications that support copying (mirroring) the content of remote repositories to a local repository. There is also a p2.mirror ant task.

Mirroring an artifact repository

The artifact mirroring application supports duplicating a complete artifact repository into a target repository. 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 contents of a source repository into the destination repository. If the destination repository does not already exist, the mirroring application will create a new repository with the same properties as the source.


   <eclipseInstall>\eclipse.exe
   -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
   -source https://download.eclipse.org/releases/ganymede
   -destination file:d:/artifactLocalRepository/

Arguments description

Additional arguments

Mirroring a metadata repository

The metadata mirroring application supports copying a complete metadata repository into a target repository. 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 repository. If the destination repository does not already exist, the mirroring application will create a new repository with the same properties as the source.


    <eclipseInstall>\eclipse.exe
   -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication
   -source https://download.eclipse.org/releases/ganymede
   -destination file:d:/metadataLocalRepository/

Arguments description

Additional arguments