What happens to dependencies in a full-stack application
Spring Boot service + React/Vite frontend + shaded library, shipped as one Boot jar on a Temurin JRE image
The application and how it is built
A Spring Boot service with a React front end, shipped as one executable jar on a Temurin JRE image. It is a Maven multi-module build: a normalizer module, a service module, and a front end built by Vite whose output is copied into the jar as static files. Spring's BOM chooses the versions of most of the Java dependencies.
What gets hidden, and how
Three things happen to dependencies on the way in. commons-codec is shaded: its classes are relocated into normalizer's jar under another package name. lodash, react and react-dom are bundled into one JavaScript file. And versions such as jackson-databind's are decided by an imported BOM, not written in the service's POM.
| Component | Mechanism | In the artefact? | What happens to it |
|---|---|---|---|
| commons-codec@1.17.1 | shaded | ships | relocated to com.acme.internal.codec inside normalizer-1.0.0.jar; only META-INF/maven pom.properties survives |
| lodash@4.17.21 | bundled | ships | bundled by Vite into BOOT-INF/classes/static/assets/index-*.js; no package boundary survives |
| react@18.3.1 | bundled | ships | compiled into a JavaScript bundle; no package boundary survives |
| react-dom@18.3.1 | bundled | ships | compiled into a JavaScript bundle; no package boundary survives |
| maven-shade-plugin@3.6.2 | plugin-realm | does not ship | the tool that relocated commons-codec |
| spring-boot-maven-plugin@3.5.12 | plugin-realm | does not ship | repackaged the jar and added jarmode-tools |
| spring-boot-dependencies@3.5.12 | bom-import | does not ship | decided every Spring/Jackson version above |
What a true SBOM would say
40 components ship, 4 of them transformed on the way in. 139 are known not to ship (1 bom-import, 4 build-tooling, 105 dev, 29 test). Those influence the build or run during it; a tool may list them, as long as it marks them.
The list was written by hand from the build files, the lockfiles and the listing of the built archive, and the project's own proof-check.sh asserts what ends up in the artefact. It is in expected.json, and the full list of what ships is at the foot of this page.
What the tools reported
- commons-codec@1.17.1: named by 7 of 8 tools at the source stage, 2 of 4 tools at the artefact stage, 3 of 4 tools at the image stage.
- lodash@4.17.21: named by 6 of 8 tools at the source stage, 0 of 4 tools at the artefact stage, 0 of 4 tools at the image stage.
- react@18.3.1: named by 6 of 8 tools at the source stage, 0 of 4 tools at the artefact stage, 0 of 4 tools at the image stage.
- react-dom@18.3.1: named by 6 of 8 tools at the source stage, 0 of 4 tools at the artefact stage, 0 of 4 tools at the image stage.
- maven-shade-plugin@3.6.2: named by 1 of 8 tools at the source stage, 0 of 4 tools at the artefact stage, 0 of 4 tools at the image stage.
- spring-boot-maven-plugin@3.5.12: named by 1 of 8 tools at the source stage, 0 of 4 tools at the artefact stage, 0 of 4 tools at the image stage.
- spring-boot-dependencies@3.5.12: named by 1 of 8 tools at the source stage, 0 of 4 tools at the artefact stage, 0 of 4 tools at the image stage.
Shipped components found, by stage
Out of 40 that ship. Only the tools that scan all three stages are drawn; the table below has every tool.
Component by component
Ships: Y exact version, v wrong version, p wrong group or namespace, n not named. Does not ship: L listed and marked, X listed unmarked, · not listed. A tool appears under a stage only if it was run there, so an empty column never stands for a miss. Select a cell to see what is behind it.
Select a cell.
| source | artefact | image | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Component | capycli | cdxgen | cyclonedx-maven-plugin | cyclonedx-npm | sbom-plus-maven-plugin | sbom-tool | syft | trivy | bom | cdxgen | syft | trivy (raw archive) | trivy | cdxgen | docker-scout | syft | trivy |
| Ships. In the artefact, including components that were shaded or bundled on the way in. | |||||||||||||||||
| service@1.0.0 | |||||||||||||||||
| normalizer@1.0.0 | |||||||||||||||||
| commons-codec@1.17.1 shaded | |||||||||||||||||
| commons-codec@1.18.0 | |||||||||||||||||
| lodash@4.17.21 bundled | |||||||||||||||||
| react@18.3.1 bundled | |||||||||||||||||
| react-dom@18.3.1 bundled | |||||||||||||||||
| jackson-databind@2.19.4 | |||||||||||||||||
| jackson-core@2.19.4 | |||||||||||||||||
| jackson-annotations@2.19.4 | |||||||||||||||||
| jackson-datatype-jdk8@2.19.4 | |||||||||||||||||
| jackson-datatype-jsr310@2.19.4 | |||||||||||||||||
| jackson-module-parameter-names@2.19.4 | |||||||||||||||||
| jakarta.annotation-api@2.1.1 | |||||||||||||||||
| jul-to-slf4j@2.0.17 | |||||||||||||||||
| slf4j-api@2.0.17 | |||||||||||||||||
| log4j-api@2.24.3 | |||||||||||||||||
| log4j-to-slf4j@2.24.3 | |||||||||||||||||
| logback-classic@1.5.32 | |||||||||||||||||
| logback-core@1.5.32 | |||||||||||||||||
| micrometer-commons@1.15.10 | |||||||||||||||||
| micrometer-observation@1.15.10 | |||||||||||||||||
| snakeyaml@2.4 | |||||||||||||||||
| spring-aop@6.2.17 | |||||||||||||||||
| spring-beans@6.2.17 | |||||||||||||||||
| spring-context@6.2.17 | |||||||||||||||||
| spring-core@6.2.17 | |||||||||||||||||
| spring-expression@6.2.17 | |||||||||||||||||
| spring-jcl@6.2.17 | |||||||||||||||||
| spring-web@6.2.17 | |||||||||||||||||
| spring-webmvc@6.2.17 | |||||||||||||||||
| spring-boot@3.5.12 | |||||||||||||||||
| spring-boot-autoconfigure@3.5.12 | |||||||||||||||||
| spring-boot-jarmode-tools@3.5.12 | |||||||||||||||||
| tomcat-embed-core@10.1.52 | |||||||||||||||||
| tomcat-embed-el@10.1.52 | |||||||||||||||||
| tomcat-embed-websocket@10.1.52 | |||||||||||||||||
| loose-envify@1.4.0 | |||||||||||||||||
| js-tokens@4.0.0 | |||||||||||||||||
| scheduler@0.23.2 | |||||||||||||||||
| Present in the build, absent from the artefact. Plugins and their payloads, imported BOMs, and dependencies the build file requires but the artefact never contains. Listing one is right when it is marked as not shipping. | |||||||||||||||||
| maven-shade-plugin@3.6.2 plugin-realm | |||||||||||||||||
| spring-boot-maven-plugin@3.5.12 plugin-realm | |||||||||||||||||
| spring-boot-dependencies@3.5.12 bom-import | |||||||||||||||||
Every document
| Content accuracy | Baseline conformance | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Tool | Format | Comps | In scope | Shipped found | Wrong ver | Wrong purl | Leaked | Labelled | Hashes ok | NTIA 2021 | NTIA/CISA 2026 | BSI v2.1 |
| source | ||||||||||||
| capycli 2.12.0 | cyclonedx | 72 | 72 | 38/40 | 0 | 0 | 29 | 0 | 0/0 | 8.3 | 4.3 | 3.6 |
| cdxgen 11.3.2 | cyclonedx | 178 | 178 | 38/40 | 0 | 0 | 0 | 134 | 0/0 | 8.3 | 7.0 | 4.0 |
| cyclonedx-maven-plugin 2.9.1 | cyclonedx | 39 | 39 | 33/40 | 0 | 0 | 0 | 0 | 30/30 | 8.4 | 8.3 | 4.7 |
| cyclonedx-npm 6.0.1 | cyclonedx | 64 | 64 | 6/40 | 0 | 0 | 0 | 57 | 0/0 | 8.4 | 6.8 | 5.7 |
| sbom-plus-maven-plugin 1.1.0 | cyclonedx | 268 | 268 | 32/40 | 0 | 0 | 0 | 34+190 | 29/29 | 10.0 | 9.9 | 9.2 |
| sbom-tool 4.1.13 | spdx | 132 | 132 | 39/40 | 0 | 0 | 86 | 0 | 0/0 | 10.0 | 4.3 | 3.5 |
| syft 1.51.0 | cyclonedx | 21 | 15 | 9/40 | 3 | 0 | 0 | 0 | 0/0 | 6.7 | 4.7 | 3.5 |
| trivy 0.74.0 | cyclonedx | 88 | 84 | 38/40 | 0 | 0 | 0 | 0 | 0/0 | 8.0 | 5.4 | 4.0 |
| artefact | ||||||||||||
| bom 0.8.0 | spdx | 0 | 0 | 0/40 | 0 | 0 | 0 | 0 | 0/0 | 6.7 | 5.6 | 4.3 |
| cdxgen 11.3.2 | cyclonedx | 33 | 33 | 27/40 | 0 | 5 | 0 | 0 | 0/0 | 8.4 | 4.5 | 3.7 |
| syft 1.51.0 | cyclonedx | 34 | 34 | 33/40 | 0 | 1 | 0 | 0 | 0/0 | 8.0 | 5.6 | 3.9 |
| trivy-rawfile 0.74.0 | cyclonedx | 1 | 1 | 0/40 | 0 | 0 | 0 | 0 | 0/0 | 3.1 | 4.4 | 4.1 |
| trivy 0.74.0 | cyclonedx | 34 | 34 | 33/40 | 0 | 0 | 0 | 0 | 32/32 | 8.2 | 8.3 | 4.1 |
| image | ||||||||||||
| cdxgen 11.3.2 | cyclonedx | 218 | 1 | 0/40 | 0 | 0 | 0 | 0 | 0/0 | 7.7 | 5.5 | 3.0 |
| docker-scout 1.24.0 | spdx | 238 | 36 | 34/40 | 0 | 0 | 0 | 0 | 0/0 | 10.0 | 6.9 | 3.8 |
| syft 1.51.0 | cyclonedx | 179 | 35 | 33/40 | 0 | 1 | 0 | 0 | 0/0 | 1.9 | 4.3 | 2.1 |
| trivy 0.74.0 | cyclonedx | 177 | 34 | 34/40 | 0 | 0 | 0 | 0 | 32/32 | 9.6 | 6.1 | 3.9 |
- In scope: package components whose purl type is one of the test case's ecosystems (OS packages in images are ignored).
- Shipped found: recall against what is really in the artefact, at the exact version.
- Wrong ver: named, but at a version that does not ship. Wrong purl: right name and version under the wrong group, so no advisory database will match it.
- Leaked: things that do not ship (test, dev, build tooling,
provided, BOM imports) listed with nothing a consumer could filter on. - Labelled: the same things listed with a scope or property that marks them, which is correct.
+Ncounts further labelled components outside the known list. - Hashes ok: hashes that match the real digest of the jar inside the built artefact, over hashes the tool emitted for those jars.
- NTIA 2021, NTIA/CISA 2026, BSI v2.1:
sbomqs compliancetotals out of 10. They measure whether the fields are present, not whether the inventory is right.
Details
- source / capycli leaked unlabelled: json-path@2.9.0, android-json@0.0.20131108.vaadin1, jakarta.activation-api@2.1.4, jakarta.xml.bind-api@4.0.4, byte-buddy-agent@1.17.8, byte-buddy@1.17.8, accessors-smart@2.5.2, json-smart@2.5.2 …
- source / sbom-tool leaked unlabelled: json-path@2.9.0, android-json@0.0.20131108.vaadin1, jakarta.activation-api@2.1.4, jakarta.xml.bind-api@4.0.4, byte-buddy-agent@1.17.8, byte-buddy@1.17.8, accessors-smart@2.5.2, json-smart@2.5.2 …
- source / syft wrong version: jackson-databind@2.19.4 reported as UNKNOWN, junit-jupiter@5.12.2 reported as UNKNOWN, spring-boot-starter-test@3.5.12 reported as UNKNOWN
- artefact / cdxgen wrong purl (group guessed): micrometer-commons@1.15.10, micrometer-observation@1.15.10, spring-boot-autoconfigure@3.5.12, spring-boot-jarmode-tools@3.5.12, spring-boot@3.5.12
- artefact / syft wrong purl (group guessed): spring-boot-jarmode-tools@3.5.12
- image / syft wrong purl (group guessed): spring-boot-jarmode-tools@3.5.12
Reading the result
Where a scanner reports the shaded commons-codec, it is reading a pom.properties file the shade plugin left behind, not the relocated classes. The workshop this case comes from shows the identification vanish when that one file is removed, so a match here does not mean the tool can see shaded code. The bundled libraries can be named from the lockfile at the source stage; after the build there is no package left to find. Test and dev dependencies outnumber what ships several times over, so how a tool treats scope decides whether its document describes the application or the whole project.
This is our interpretation. The counts above are what the run recorded; why a tool found or missed something is inferred from how the tool works, not established by the data. Limits of the benchmark.
Evidence
- The project, and its walkthrough from the workshop it comes from.
- Ground truth (
expected.json). - Every SBOM generated for this test case at the source and artefact stages.
- The scores for every document, machine-readable.
Ground truth: what ships
| Component | Note |
|---|---|
pkg:maven/dev.noregressions.trace/service@1.0.0 | primary component (Boot jar) |
pkg:maven/dev.noregressions.trace/normalizer@1.0.0 | sibling module, packaged as a nested jar |
pkg:maven/commons-codec/commons-codec@1.17.1 | relocated to com.acme.internal.codec inside normalizer-1.0.0.jar; only META-INF/maven pom.properties survives |
pkg:maven/commons-codec/commons-codec@1.18.0 | second, un-shaded copy pulled in by Spring Boot |
pkg:npm/lodash@4.17.21 | bundled by Vite into BOOT-INF/classes/static/assets/index-*.js; no package boundary survives |
pkg:npm/react@18.3.1 | |
pkg:npm/react-dom@18.3.1 | |
pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.19.4 | version chosen by spring-boot-dependencies, not by the service POM |
pkg:maven/com.fasterxml.jackson.core/jackson-core@2.19.4 | |
pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.19.4 | |
pkg:maven/com.fasterxml.jackson.datatype/jackson-datatype-jdk8@2.19.4 | |
pkg:maven/com.fasterxml.jackson.datatype/jackson-datatype-jsr310@2.19.4 | |
pkg:maven/com.fasterxml.jackson.module/jackson-module-parameter-names@2.19.4 | |
pkg:maven/jakarta.annotation/jakarta.annotation-api@2.1.1 | |
pkg:maven/org.slf4j/jul-to-slf4j@2.0.17 | |
pkg:maven/org.slf4j/slf4j-api@2.0.17 | |
pkg:maven/org.apache.logging.log4j/log4j-api@2.24.3 | |
pkg:maven/org.apache.logging.log4j/log4j-to-slf4j@2.24.3 | |
pkg:maven/ch.qos.logback/logback-classic@1.5.32 | |
pkg:maven/ch.qos.logback/logback-core@1.5.32 | |
pkg:maven/io.micrometer/micrometer-commons@1.15.10 | |
pkg:maven/io.micrometer/micrometer-observation@1.15.10 | |
pkg:maven/org.yaml/snakeyaml@2.4 | |
pkg:maven/org.springframework/spring-aop@6.2.17 | |
pkg:maven/org.springframework/spring-beans@6.2.17 | |
pkg:maven/org.springframework/spring-context@6.2.17 | |
pkg:maven/org.springframework/spring-core@6.2.17 | |
pkg:maven/org.springframework/spring-expression@6.2.17 | |
pkg:maven/org.springframework/spring-jcl@6.2.17 | |
pkg:maven/org.springframework/spring-web@6.2.17 | |
pkg:maven/org.springframework/spring-webmvc@6.2.17 | |
pkg:maven/org.springframework.boot/spring-boot@3.5.12 | |
pkg:maven/org.springframework.boot/spring-boot-autoconfigure@3.5.12 | |
pkg:maven/org.springframework.boot/spring-boot-jarmode-tools@3.5.12 | added by spring-boot-maven-plugin repackaging, not by dependency resolution |
pkg:maven/org.apache.tomcat.embed/tomcat-embed-core@10.1.52 | |
pkg:maven/org.apache.tomcat.embed/tomcat-embed-el@10.1.52 | |
pkg:maven/org.apache.tomcat.embed/tomcat-embed-websocket@10.1.52 | |
pkg:npm/loose-envify@1.4.0 | transitive of react/react-dom, bundled with them |
pkg:npm/js-tokens@4.0.0 | transitive of react/react-dom, bundled with them |
pkg:npm/scheduler@0.23.2 | transitive of react/react-dom, bundled with them |