• 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
  • -dsannotations-options SELECTORS

    The -dsannotations-options instruction configures how DS component annotations are processed and what metadata is generated.

    -dsannotations-options: version;minimum=1.2.0
    

    The example above, will restrict the use of OSGi DS annotations to minimum 1.2.0 version. The version number denotes that the users are free to use any version equal to or higher than 1.2.0, provided that the users have the SCR annotations included in the workspace.

    The following options are supported:

    option  
    inherit use DS annotations found in the class hierarchy of the component class
    felixExtensions enables features proprietary to Apache Felix SCR
    extender add the osgi.extender=osgi.component requirement to the manifest
    nocapabilities do not add osgi.service capabilities to the manifest
    norequirements do not add osgi.service requirements to the manifest
    version set the minimum version of the osgi.extender=osgi.component requirement added to the manifest
    • GitHub