SBOM+ Maven Plugin

An SBOM of everything your build actually uses

A Maven plugin that writes a CycloneDX SBOM covering the resolved project dependency graph, every build plugin and its transitive dependencies, and the BOMs you import. Not just the application classpath.

Version 1.1.0 CycloneDX 1.6 Maven 3.9 Java 8+ Apache 2.0

What it finds

Main build graph

The fully resolved project dependency graph across compile, runtime, provided and test scopes, with the real path that brought each artifact in.

Build tooling

Every plugin in the effective build, plus each plugin's own transitive dependencies and any extra <plugin><dependencies>. These run arbitrary code during your build and never show up in the project classpath.

BOM imports

The import-scoped POMs from <dependencyManagement>, since a BOM's release train is a trackable component in its own right.

The plugin only enumerates and writes. It does no vulnerability, end-of-life or licence annotation. Feed the SBOM to whatever tooling does that for you.

Quick start

Run it against any Maven project without touching the POM:

mvn dev.noregressions:sbom-plus-maven-plugin:1.1.0:scan

For a multi-module reactor, run the aggregate goal once from the root:

mvn dev.noregressions:sbom-plus-maven-plugin:1.1.0:scan-aggregate

Or bind it into the build so every mvn verify produces an SBOM:

<plugin>
  <groupId>dev.noregressions</groupId>
  <artifactId>sbom-plus-maven-plugin</artifactId>
  <version>1.1.0</version>
  <executions>
    <execution>
      <goals>
        <goal>scan</goal>
      </goals>
    </execution>
  </executions>
</plugin>
Both goals do their own dependency resolution, so they work as a bare goal against a checkout that has never been built. See unresolved dependencies for what happens when something cannot be found.

Goals and parameters

sbom-plus:scan

Scans the current module only. Binds to the verify phase by default.

ParameterPropertyDefault
outputFilesbomPlus.outputFile${project.build.directory}/sbom-plus.json
sbomOutputFilesbomPlus.sbomOutputFile${project.build.directory}/sbom-plus-cyclonedx.json
authorsbomPlus.authorthe POM's <organization> name, else its first developer
authorEmailsbomPlus.authorEmailnone
concludeDeclaredLicensessbomPlus.concludeDeclaredLicensesfalse
dataLicensesbomPlus.dataLicensenone

sbom-plus:scan-aggregate

Runs once for a whole multi-module reactor and writes one combined report and one combined SBOM at the top level.

ParameterPropertyDefault
outputFilesbomPlus.outputFile${session.topLevelProject.build.directory}/sbom-plus-aggregate.json
sbomOutputFilesbomPlus.sbomOutputFile${session.topLevelProject.build.directory}/sbom-plus-cyclonedx-aggregate.json
authorsbomPlus.authorthe top-level POM's <organization> name, else its first developer
authorEmailsbomPlus.authorEmailnone
concludeDeclaredLicensessbomPlus.concludeDeclaredLicensesfalse
dataLicensesbomPlus.dataLicensenone

Override either path from the command line:

mvn dev.noregressions:sbom-plus-maven-plugin:1.1.0:scan -DsbomPlus.sbomOutputFile=build/sbom.json

Outputs

Each goal writes two files.

The CycloneDX SBOM

A CycloneDX 1.6 JSON document with one component per distinct artifact. Only artifacts that actually resolved are listed. Each component carries:

With scan-aggregate, every module of the reactor is itself a component (REACTOR_MODULE), whether or not another module depends on it. A pom-packaged module is excluded; any other is required.

The document also has a dependencies graph rebuilt from the real resolution paths: the scanned project depends on its modules, direct dependencies hang off the module that declared them, and transitive ones off whatever brought them in.

A compositions entry states how far that graph can be relied on: complete when Maven resolved everything it was asked to, incomplete when anything is in the report's unresolved lists. It covers the dependency graph only. It does not claim that nothing else was packed into the built artifact.

metadata records:

Every SBOM the test suite produces is validated against the official CycloneDX schema.

The scan report

The plugin's own richer, per-module view. For every row it records which resolution pass found it, its scope, and the root-first path that brought it in.

{
  "formatVersion" : 2,
  "generatedAt" : "2026-09-06T12:29:53Z",
  "modules" : [ {
    "module" : "com.example:app",
    "version" : "1.0.0",
    "packaging" : "jar",
    "dependencies" : [ {
      "coordinate" : { "groupId" : "org.slf4j", "artifactId" : "slf4j-api", "version" : "2.0.13" },
      "origin" : "MAIN_BUILD",
      "scope" : "compile",
      "type" : "jar",
      "module" : "com.example:app",
      "broughtInBy" : [ { "groupId" : "ch.qos.logback", "artifactId" : "logback-classic", "version" : "1.5.6" } ]
    } ],
    "unresolved" : [ ]
  } ],
  "artifacts" : {
    "pkg:maven/org.slf4j/slf4j-api@2.0.13" : {
      "hashes" : { "MD5" : "...", "SHA-1" : "...", "SHA-256" : "..." },
      "supplier" : "QOS.ch",
      "licenses" : [ { "id" : "MIT", "name" : "MIT License", "url" : "http://www.opensource.org/licenses/mit-license.php" } ],
      "vcsUrl" : "https://github.com/qos-ch/slf4j",
      "repositoryId" : "central",
      "repositoryUrl" : "https://repo.maven.apache.org/maven2",
      "distributionUrl" : "https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar"
    }
  }
}

origin is one of MAIN_BUILD, BUILD_TOOLING or BOM. formatVersion is bumped whenever the report shape changes in a way consumers need to know about.

Conformance

The SBOM is built to satisfy the published minimum-element profiles. Scored with sbomqs 2.1.3 on this repository's scan-basic integration project (190 components):

ProfileDefaultWith concludeDeclaredLicenses and dataLicense
NTIA minimum elements (2021)10.010.0
CISA minimum elements (2026)10.010.0
BSI TR-03183-2 v2.19.29.9
FSCT v310.110.1
sbomqs quality8.09.5

Two settings are left off by default because they are statements only you can make:

What is not claimed: the document is unsigned, components carry no CPE, and a component whose POM declares no licence, organization or source repository is listed without one rather than given a placeholder.

Unresolved dependencies

A dependency that cannot be resolved does not fail the build. The typical case is a multi-module reactor scanned before it has ever been built, where one module depends on a sibling SNAPSHOT that exists nowhere yet. In that situation the plugin:

"unresolved" : [ {
  "coordinate" : { "groupId" : "com.example", "artifactId" : "core", "version" : "1.2.0-SNAPSHOT" },
  "scope" : "compile",
  "reason" : "Could not find artifact com.example:core:jar:1.2.0-SNAPSHOT"
} ]

Requirements

Source and issues

Source, issue tracker and release notes live at github.com/noregressions/sbom-plus-maven-plugin. Build it locally with mvn verify, which runs the unit tests and the forked integration builds under src/it.