Skip to content

Add jarmode tools command to print / export the SBOM #45954

Description

@blaghed

With native images, and starting with GraalVM 23, it is possible to include the SBOM file in the classpath by running the build with --enable-sbom=classpath.
It would be handy to have a standard approach to view/print this SBOM file on demand.

Discussion in #40630 suggests an approach via -Djarmode=tools.
Examples:
my-app -Djarmode=tools sbom
java -Djarmode=tools -jar my-app.jar sbom
java -Djarmode=tools -jar my-app.jar sbom [--destination my-app.sbom.json] (toggle between System.out or a file)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions