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.0What 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>
Goals and parameters
sbom-plus:scan
Scans the current module only. Binds to the verify phase by default.
| Parameter | Property | Default |
|---|---|---|
outputFile | sbomPlus.outputFile | ${project.build.directory}/sbom-plus.json |
sbomOutputFile | sbomPlus.sbomOutputFile | ${project.build.directory}/sbom-plus-cyclonedx.json |
author | sbomPlus.author | the POM's <organization> name, else its first developer |
authorEmail | sbomPlus.authorEmail | none |
concludeDeclaredLicenses | sbomPlus.concludeDeclaredLicenses | false |
dataLicense | sbomPlus.dataLicense | none |
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.
| Parameter | Property | Default |
|---|---|---|
outputFile | sbomPlus.outputFile | ${session.topLevelProject.build.directory}/sbom-plus-aggregate.json |
sbomOutputFile | sbomPlus.sbomOutputFile | ${session.topLevelProject.build.directory}/sbom-plus-cyclonedx-aggregate.json |
author | sbomPlus.author | the top-level POM's <organization> name, else its first developer |
authorEmail | sbomPlus.authorEmail | none |
concludeDeclaredLicenses | sbomPlus.concludeDeclaredLicenses | false |
dataLicense | sbomPlus.dataLicense | none |
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:
purl, with atypequalifier for anything that is not a jar, such as?type=pomfor a BOM import, aclassifierqualifier when the artifact has one, and arepository_urlqualifier when it was downloaded from somewhere other than Maven Central.hashes: MD5, SHA-1, SHA-256 and SHA-512 of the resolved artifact file. An artifact whose file could not be obtained is listed without them.supplierandmanufacturer: the POM's organization, else its first named developer, else the group id, with the organization's URL or failing that the project's.authors: the developers the POM names.licenses: what the POM declares, markeddeclared. Each has an SPDXidwhen the name or URL identifies exactly one licence, and the POM's ownnameotherwise. An ambiguous name such as "GNU Lesser General Public License" is never guessed at. WithconcludeDeclaredLicenses, each licence that has an SPDX id is listed a second time asconcluded.descriptionandcopyright, when the POM has a description and an organization.externalReferences:vcs(the POM'sscm),website(itsurl) anddistribution(the file's URL in the repository it was downloaded from, taken from the local repository's download record, with the file's hashes).bsi:component:filename,executable,archiveandstructuredproperties, as BSI TR-03183-2 asks for.bom-ref, the purl withoutrepository_url, which thedependenciessection refers to.scope:requiredfor compile, runtime and system dependencies,optionalfor provided, andexcludedfor test-only dependencies, build tooling and BOM imports, since those never ship in the delivered artifact. An artifact seen in more than one role takes the strongest scope.- One
sbom-plus:originproperty per role it was seen in:MAIN_CLASSPATH,TEST_ONLY,BUILD_TOOLING,BOM_IMPORTorREACTOR_MODULE.
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:
component: the scanned project, with itsgroupandpurl. The purl is also itsbom-ref. It is described like any other component, and hashed when its artifact has been built, which it has when the goal runs at or afterpackage.lifecycles:build, since the document comes from the build's own resolution.authors,manufacturerandsupplier: theauthorparameter, withauthorEmailand the organization's or project's URL. All are left out when no author is configured and the POM names no organization or developer.licenses: thedataLicenseparameter, when set.tools: this plugin and its version.
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):
| Profile | Default | With concludeDeclaredLicenses and dataLicense |
|---|---|---|
| NTIA minimum elements (2021) | 10.0 | 10.0 |
| CISA minimum elements (2026) | 10.0 | 10.0 |
| BSI TR-03183-2 v2.1 | 9.2 | 9.9 |
| FSCT v3 | 10.1 | 10.1 |
| sbomqs quality | 8.0 | 9.5 |
Two settings are left off by default because they are statements only you can make:
concludeDeclaredLicenses: aconcludedlicence tells the reader it has been verified. The plugin only reads what the publisher declared. Turn it on when taking the declared licence at face value is your policy.dataLicense: the licence your SBOM document is published under, for exampleCC0-1.0.
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:
- logs a warning naming each artifact that could not be resolved,
- keeps everything else that did resolve,
- records each gap in the module's
unresolvedlist in the scan report, with the coordinate, scope and the resolver's reason, - leaves the unresolved artifact out of the CycloneDX SBOM, since an SBOM must only assert components that exist.
"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
- Maven 3.9.x
- Java 8 or later to run the plugin. The plugin is compiled with
--release 8.
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.