The OSGi Repository can read index files as specified by the OSGi Repository Service Specification and is a read only repository.
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. |
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,\
This plugin supports Tagging via the tags
configuration property. See Tagging of repository plugins for more details.