• 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
  • OSGi Repository

    A plugin to use OSGi repositories

    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 many seconds the downloaded index file stays in the internal download cache. Use -1 to always check if there is a newer file on the server.
    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.
    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

    To set up the OSGi Repository use:

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

    Tagging

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

Search
    • Home