• 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
  • -jpms-module-info modulename [; version=] [; access=OPEN|SYNTHETIC|MANDATED]
    JPMS

    Used to generate the `module-info.class`

    See jpms for an overview and the detailed rules how the module-info.class file is calculated.

    The -jpms-module-info instruction is a single parameter

    -jpms-module-info   ::= module-name [ ';version=' VERSION ] access
    access              ::= `;access=' '"' item ( ',' item ) * '"'
    item                ::= 'OPEN' | 'SYNTHETIC' | 'MANDATED'
    
    • Key – The key is the module name. If not set, the Automatic-Module-Name is used, or if that one is not set, the Bundle-SymbolicName.
    • version – The version, otherwise the bundle version is used.
    • access – The access flags. These indicate the access mode of the module.

    For example:

    -jpms-module-info: foo.module;version=5.4.1; access="OPEN,SYNTHETIC"
    
Search
    • Home