• Intro Headers Instructions Macros
  • Fork me on GitHub
  • What is bnd?

    “If you want to teach people a new way of thinking, don't bother trying to teach them. Instead, give them a tool, the use of which will lead to new ways of thinking.”
    ― R. Buckminster Fuller

    bnd is the engine behind a number of popular software development tools that support OSGi. It can be found in several maven plugins, ant, gradle, and of course Eclipse (bndtools). It actively seeks other build tool vendors to use bnd to improve the quality of the generated OSGi metadata.

    bnd actually consists of 2 major parts, one part is really good in creating a JAR with OSGi meta data based on instructions and the information in the class files. Over time bnd has collected hundreds of heuristics that provide for good bundles. This part is therefore often used in build tools like maven or gradle that already generate JARs. They mainly use the manifest generation features of bnd.

    The other part is a IDE/build tool independent model of a workspace with projects. This was the result of the frustration that certain things could be done very well in Eclipse but that other things are best done in a command line tool. Since IDEs are incremental and very event driven, command line tools tend to run everything from start to end. What was needed was an independent model that could work with Eclipse, maven, ant, gradle, and hopefully one day Intellij.

    So to use bnd, look at the the descriptions of the tools that include bnd. Then when you want to find out what a certain command does, or how to call a macro, then use this manual.

  • How to get started?

  • Table of contents

    1. Release
    2. Introduction
    3. How to install bnd
    4. Guided Tour
    5. Guided Tour Workspace & Projects
    6. Concepts
    7. Best practices
    8. Build
    9. Generating JARs
    10. Versioning
    11. Baselining
    12. Service Components
    13. Metatype
    14. Contracts
    15. Manifest Annotations
    16. Resolving Dependencies
    17. Launching
    18. Testing
    19. Packaging Applications
    20. Wrapping Libraries to OSGi Bundles
    21. From the command line
    22. For Developers
    23. Plugins
    24. Tools bound to bnd
    25. File Format
    26. Header Reference
    27. Instruction
    28. Instruction Index
    29. Macro Reference
    30. Command Reference
    31. Plugins Reference
    32. Settings
    33. Errors
    34. Warnings
    35. Frequently Asked Questions
    • Contact
    • Developers
    • More