Create a P2 Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

This topic describes how to create a P2 repository. This is required before publishing and installing P2 packages. Artifactory supports two types of P2 repositories:

  • Remote repositories: Download packages from remote registries, including external package registries or other Artifactory instances

  • Virtual repositories: Aggregate remote and local repositories, enabling your organization to scale by providing a single URL that provides access to multiple repositories and types

For more information on JFrog repositories, see Repository Management Overview.

Note

If developers in your organization use different versions of Eclipse, for example Helios and Juno, it is recommended to define a different P2 virtual repository for each Eclipse version.

Prerequisite: You need Admin or Project Admin permissions in Artifactory to create a repository.

To create a P2 repository:

  1. In the Administration tab, click Repositories | Create a Repository.

    CreateAnsibleLocal1.png
  2. Select the type of repository you want to create: remote or virtual.

  3. Select the P2 package type.

  4. Configure the required fields for the repository:

    • For remote repositories, verify the Repository URL and update as needed. For more information on remote repositories and their settings, see Remote Repositories.

      Tip

      To add a remote P2 repository to Artifactory, enter the URL to the corresponding P2 metadata files like content.jar, artifacts.jar, or compositeContent.xml. If the files are inside an archive file, add ! to the end of the URL. For example, http://eclipse.org/equinox-sdk.zip!/.

    • For virtual repositories, select one or more local or remote repositories to include in the virtual repository. For more information on virtual repositories and their settings, see Virtual Repositories.

      Note

      You can add local repositories of different package types, like Maven, to your P2 virtual repository. There is no P2 local repository type in Artifactory.

      If you have a Tycho repository deployed to a local repository as a single archive, specify the archive's root path in the Path Suffix field. For example, eclipse-repository.zip!/.

  5. Click Create Repository. The repository is created and the Repositories window is displayed.