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

Test case
spring-node
Ecosystems
maven, npm
Scanned at
source, artefact, 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.

ComponentMechanismIn the artefact?What happens to it
commons-codec@1.17.1shadedshipsrelocated to com.acme.internal.codec inside normalizer-1.0.0.jar; only META-INF/maven pom.properties survives
lodash@4.17.21bundledshipsbundled by Vite into BOOT-INF/classes/static/assets/index-*.js; no package boundary survives
react@18.3.1bundledshipscompiled into a JavaScript bundle; no package boundary survives
react-dom@18.3.1bundledshipscompiled into a JavaScript bundle; no package boundary survives
maven-shade-plugin@3.6.2plugin-realmdoes not shipthe tool that relocated commons-codec
spring-boot-maven-plugin@3.5.12plugin-realmdoes not shiprepackaged the jar and added jarmode-tools
spring-boot-dependencies@3.5.12bom-importdoes not shipdecided 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

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.

02040sourceartefactimagesyft, source: 9 of 40syft, artefact: 33 of 40syft, image: 33 of 40trivy, source: 38 of 40trivy, artefact: 33 of 40trivy, image: 34 of 40cdxgen, source: 38 of 40cdxgen, artefact: 27 of 40cdxgen, image: 0 of 40trivy: 34 of 40syft: 33 of 40cdxgen: 0 of 40
syfttrivycdxgen

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.

sourceartefactimage
Componentcapyclicdxgencyclonedx-maven-plugincyclonedx-npmsbom-plus-maven-pluginsbom-toolsyfttrivybomcdxgensyfttrivy (raw archive)trivycdxgendocker-scoutsyfttrivy
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 accuracyBaseline conformance
ToolFormatCompsIn scopeShipped foundWrong verWrong purlLeakedLabelledHashes okNTIA 2021NTIA/CISA 2026BSI v2.1
source
capycli 2.12.0cyclonedx727238/40002900/08.34.33.6
cdxgen 11.3.2cyclonedx17817838/400001340/08.37.04.0
cyclonedx-maven-plugin 2.9.1cyclonedx393933/40000030/308.48.34.7
cyclonedx-npm 6.0.1cyclonedx64646/40000570/08.46.85.7
sbom-plus-maven-plugin 1.1.0cyclonedx26826832/4000034+19029/2910.09.99.2
sbom-tool 4.1.13spdx13213239/40008600/010.04.33.5
syft 1.51.0cyclonedx21159/4030000/06.74.73.5
trivy 0.74.0cyclonedx888438/4000000/08.05.44.0
artefact
bom 0.8.0spdx000/4000000/06.75.64.3
cdxgen 11.3.2cyclonedx333327/4005000/08.44.53.7
syft 1.51.0cyclonedx343433/4001000/08.05.63.9
trivy-rawfile 0.74.0cyclonedx110/4000000/03.14.44.1
trivy 0.74.0cyclonedx343433/40000032/328.28.34.1
image
cdxgen 11.3.2cyclonedx21810/4000000/07.75.53.0
docker-scout 1.24.0spdx2383634/4000000/010.06.93.8
syft 1.51.0cyclonedx1793533/4001000/01.94.32.1
trivy 0.74.0cyclonedx1773434/40000032/329.66.13.9

Details

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

Ground truth: what ships

ComponentNote
pkg:maven/dev.noregressions.trace/service@1.0.0primary component (Boot jar)
pkg:maven/dev.noregressions.trace/normalizer@1.0.0sibling module, packaged as a nested jar
pkg:maven/commons-codec/commons-codec@1.17.1relocated 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.0second, un-shaded copy pulled in by Spring Boot
pkg:npm/lodash@4.17.21bundled 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.4version 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.12added 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.0transitive of react/react-dom, bundled with them
pkg:npm/js-tokens@4.0.0transitive of react/react-dom, bundled with them
pkg:npm/scheduler@0.23.2transitive of react/react-dom, bundled with them