• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Manifest Annotations
    • Resolving Dependencies
    • Launching
    • Testing
    • Packaging Applications
    • Wrapping Libraries to OSGi Bundles
    • From the command line
    • For Developers
    • Plugins
    • Tools bound to bnd
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • -resolve.preferences qname ( ',' qname )

    The resolver normally finds a lost of capabilities that match a given requirement. This list has an order defined by the context. However, in certain occasions this order is not the desired order. The -resolve.preferences allows you to override this context order. It is an ordered list of Bundle Symbolic Names. The list of capabilities will always be adjusted to have the bundles in the -resolver.preferences always first when they are present.

    For example:

    `-resolve.preferences` : \
    	com.example.bundle.most.priority, \
    	com.example.bundle.less.priority, \
    	com.example.whatever
    

    Given that for a requirement the capabilties come from:

    com.example.some.bundle,
    om.example.bundle.less.priority,
    com.example.another.bundle,
    com.example.most.priority
    

    Then the resulting order will be:

    com.example.most.priority
    om.example.bundle.less.priority,
    com.example.some.bundle,
    com.example.another.bundle,
    

    Preferences should only be used when blacklisting is not a better solution.

    • Contact
    • Developers
    • More