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

    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.

    Example

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