Available in Nexus Repository Pro only

Introduction

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 wrapper.java.maxmemory to a minimum of 2048. This configuration value can be found in $NEXUS_HOME/bin/jsw/conf/wrapper.conf.

Proxy P2 Repositories

Nexus Repository Manager can proxy a P2 Repository. To create a new proxy P2 repository:

  1. Click Repositories in the Views/Repositories menu.
  2. Click the Add.. button above the list of repositories, and choose Proxy Repository from the drop-down of repository types.
  3. In the New Proxy Repository window,
    1. Select P2 as the Provider.
    2. Supply a Repository ID and a Repository Name.
    3. Enter the URL to the remote P2 repository as the Remote Storage Location.
    4. Click Save.

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

Grouping P2 Repositories

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:

  1. Click Repositories in the Views/Repositories menu.
  2. Click the Add.. button above the list of repositories, and choose Repository Group from the drop-down of repository types.
  3. In the New Repository Group window,
    1. Select P2 as the Provider.
    2. Drag and drop one or more P2 repositories into the new group.
    3. Supply a Group ID and a Group Name.
    4. Click Save.

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