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)