Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Latest commit

 

History

History
83 lines (49 loc) · 2.75 KB

chapter-p2.asciidoc

File metadata and controls

83 lines (49 loc) · 2.75 KB

P2 Repositories

{inrmonly}

Introduction

{nxrm} 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.

{pro} has P2 support installed by default. Prior to any usage in {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.

Tip
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

{nxrm} 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'.

Creating a P2 Proxy Repository provides a sample configuration used to create a proxy of the Indigo Simultaneous Release P2 repository.

p2 create proxy
Figure 1. Creating a P2 Proxy Repository

Grouping P2 Repositories

Just like {nxrm} 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'.

Creating a New P2 Repository Group shows an example of a repository group that contains two P2 proxy repositories.

p2 create group
Figure 2. Creating a New P2 Repository Group