• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • How to install bnd
      • Guided Tour
      • Guided Tour Workspace & Projects
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Introduction
      • Concepts
      • Best practices
    • Build and Development
      • Project Setup
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • P2 Repository

    A plugin to use P2 repositories

    This is a read only Repository, that enables bnd to get dependencies from a P2 Repository. As bnd does not know the concept of Eclipse Features or Directory shaped bundles, it will not recognize such artifacts.

    As P2 does not support all the necessary OSGi metadata, bnd will download the whole content of the repository, so it can analyze it and build its own index. So be cautious, when referencing large repositories.

    Plugin Configuration

    The class name of the plugin is aQute.bnd.repository.p2.provider.P2Repository.

    It can take the following configuration properties:

    Property Type Default Description
    name NAME p2 + url The name of the repository.
    url URI   The URL to either the P2 repository (a directory) or an Eclipse target platform definition file.
    location STRING   The location to store the index file and where bundles will be downloaded to.
    tags STRING   Comma separated list of tags. (e.g. resolve, baseline, release) Use a placeholder like <<EMPTY>> to exclude the repo from resolution. The resolve tag is picked up by the -runrepos instruction.

    Example

    -plugin.p2: \
     	aQute.bnd.repository.p2.provider.P2Repository; \
     	url = https://download.eclipse.org/modeling/emf/emf/builds/release/2.21; \
     	name = EMF
    

    Tagging

    This plugin supports Tagging via the tags configuration property. See Tagging of repository plugins for more details.

Search
    • Home