• 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
    • Reference
    • Headers
    • Instruction Reference
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Plugins
    • External Plugins
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • OSGi Repository

    The OSGi Repository can read index files as specified by the OSGi Repository Service Specification and is a read only repository.

    Plugin Configuration

    The class name of the plugin is aQute.bnd.repository.osgi.OSGiRepository. It can take the following configuration properties:

    Property Type Default Description
    name NAME   The name of the repository.
    locations STRING   A Comma separate list of URLs point to an OSGi Resource file.
    cache STRING The workspace cache folder The location, the downloaded bundles are stored.
    max.stale integer one year Bnd has it’s own download cache. Max stale configures for how long the downloaded index file stays in the internal download cache.
    poll.time integer 5 seconds Number of seconds between checks for polls on the index file. If the value is negative or the workspace is in batch/CI mode, then no polling takes place.

    Example

    To set up the OSGi Repository use:

    	aQute.bnd.repository.osgi.OSGiRepository;\
    		locations=https://devel.data-in-motion.biz/public/repository/gecko/release/geckoREST/index.xml;\
    		max.stale=-1;\
    		poll.time=86400;\
    		name=GeckoJaxRsWhiteboard;\
    		cache=${build}/cache/GeckoREST,\
    

    ##

    • GitHub