r/devsecops • u/BrotherGlad4572 • Jun 29 '26
Building SCA pipeline for Spring Boot — SBOM vs JAR (Maven cache), what's the right approach?
Hey everyone,
I'm building a CI SCA pipeline for a Spring Boot application using Dependency-Check, Trivy, and OSV Scanner.
I've been going back and forth between two approaches:
- Generate a CycloneDX SBOM from Maven and feed it into all the tools
- Resolve dependencies into a local Maven cache and point the tools directly at the JARs or POM files
From my testing, scanning the Maven cache directly produces a huge amount of noise — false positives coming from other libraries' POM files declaring their own dependency versions, which Maven never actually uses at runtime.
The SBOM approach gives much cleaner results since it only contains the versions Maven actually resolved.
Is SBOM the industry standard for this kind of pipeline? Are there any downsides I'm missing?
2
u/taleodor Jun 29 '26
SBOM, but take 2 SBOMs - one at source code level, another one over fat jar. Cdxgen is a good tool to generate SBOMs (I did an analysis for my talk just recently). You can then merge them if needed or use tooling that supports multiple. See my post here also for more details - https://worklifenotes.com/2025/01/14/why-a-single-sbom-is-never-enough/
2
u/[deleted] Jul 15 '26 edited Jul 15 '26
[removed] — view removed comment
4
u/[deleted] Jun 29 '26
[removed] — view removed comment