• 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
    • Reference
    • Headers
    • Instruction Reference
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Plugins
    • External Plugins
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • -jpms-module-info modulename [; version=] [; access=OPEN|SYNTHETIC|MANDATED]
    JPMS

    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"
    
    • GitHub