Available in Nexus Repository Pro only
Nexus Repository Manager supports the P2 Repository format. The P2 repository format is a provisioning platform for Eclipse components. For more information about the P2 repository format, see the Equinox P2 documentation on the Eclipse Wiki.
The following sections detail the procedures for creating and managing P2 repositories.
Nexus Repository Manager Pro has P2 support installed by default. Prior to any usage in Nexus Repository Manager OSS the Nexus P2 Bridge Plugin and the Nexus P2 Repository Plugin need to be installed. You can download the bundle.zip files for your specific version from the Central Repository:
Extract the two files into
sonatype-work/nexus/plugin-repository and restart the repository manager.
P2 processing requires larger amounts of memory. We suggest to increase the configured Java heap memory by increasing
Nexus Repository Manager can proxy a P2 Repository. To create a new proxy P2 repository:
Figure 14.1, “Creating a P2 Proxy Repository” provides a sample configuration used to create a proxy of the Indigo Simultaneous Release P2 repository.
Figure 14.1. Creating a P2 Proxy Repository
Just like Nexus Repository Manager can group Maven repositories and OBR repositories, it can also be configured to group P2 Repositories. To group P2 repositories:
Figure 14.2, “Creating a New P2 Repository Group” shows an example of a repository group that contains two P2 proxy repositories.
Figure 14.2. Creating a New P2 Repository Group