Quick revision
The short answer
Dependency conflicts moved from project concern to organisation policy because applications now pull hundreds of transitive dependencies, so conflicts and vulnerabilities affect the whole fleet at once. Spring Boot's BOM showed that a curated, tested version set removes most conflicts, and Log4Shell showed that we must know within hours which versions run where. Today I would set a curated platform BOM, enforced convergence rules, automated upgrades, an SBOM for every artifact and a bounded lag behind the platform, with documented, expiring exceptions so the policy never blocks delivery.
What to remember
In this answer, we saw why dependency management moved from projects to the organisation: hundreds of transitive dependencies make conflicts and vulnerabilities a fleet problem, Spring Boot's BOM proved that curated version sets work, and Log4Shell proved that we must know which versions run where within hours. The policy follows from that: a platform BOM, enforced convergence, automated upgrades, an SBOM per artifact and a bounded lag, with expiring exceptions so it does not block delivery.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Dependency conflicts moved from project concern to organisation policy because applications now pull hundreds of transitive dependencies, so conflicts and vulnerabilities affect the whole fleet at once. Spring Boot's BOM showed that a curated, tested version set removes most conflicts, and Log4Shell showed that we must know within hours which versions run where. Today I would set a curated platform BOM, enforced convergence rules, automated upgrades, an SBOM for every artifact and a bounded lag behind the platform, with documented, expiring exceptions so the policy never blocks delivery.
Background to this question
Fifteen years ago, a Java service had a few dozen jars, and choosing versions was a decision each team made in its own POM. Today a small Spring Boot service resolves two or three hundred, mostly transitive, and the same libraries appear in every service the company runs. A leadership question like this one checks whether we understand why the old approach stopped working and can turn that into a policy that is strict where it matters and flexible where it should be. In this answer, we will walk through what changed, the lessons from framework BOMs and from Log4Shell, and then the policy itself and how to keep it from becoming a blocker.
1What Changed: From Dozens of Jars to Hundreds
Early Java applications assembled their libraries by hand. A team chose Hibernate, Spring, a logging library and a handful of utilities, and most conflicts were visible because the team had chosen every version. Conflict management was a project skill.
Then the ecosystem grew. Starters, clients for cloud services and observability libraries each bring their own trees. A typical service now has many more transitive dependencies than direct ones, and nobody on the team chose most of them. The same library, such as Jackson or Netty, appears in nearly every service, so a conflict or a vulnerability in it is not one team's problem; it is the same problem in 400 places. Solving it 400 times, differently, is slow and error prone.
2Lesson 1: Curated Version Sets Work
Spring Boot made a quiet but important change: instead of each project choosing versions, its BOM, spring-boot-dependencies, provides a set of several hundred library versions that the Spring team has tested together. Projects that import it rarely see conflicts among those libraries, because the conflicts were resolved once, upstream, for everyone.
The lesson for an organisation is that the same idea works one level up. A company platform BOM that imports Spring Boot's and adds internal libraries and approved third-party versions turns hundreds of local decisions into one curated decision, tested once and reused everywhere.
3Lesson 2: Log4Shell and Knowing What Runs Where
In December 2021, a critical vulnerability in Log4j 2 (CVE-2021-44228, known as Log4Shell) allowed remote code execution through a logged string. Many organisations spent the first days just finding out which applications contained log4j-core, often as a transitive dependency several levels deep, and which version. Companies that had an inventory of dependencies per deployed artifact could answer in minutes and patch in a day. Others took weeks.
So the second lesson is visibility. A software bill of materials, or SBOM, is a machine-readable list of every component and version inside an artifact, in a format such as CycloneDX or SPDX. Generated at build time and stored with each artifact, it lets us search the whole fleet for a vulnerable version the moment an advisory appears.
5 messages in order. Play them, or step through them one at a time.
Without SBOMs, the second step becomes weeks of manual searching.
4The Policy I Would Set Today
The first part is a curated platform BOM, owned by a platform team, released on a regular cadence such as every two weeks, importing Spring Boot's BOM and adding internal and approved libraries. Services take versions from it and declare their own only when they have a reason.
The second part is enforcement in the build. The corporate parent enables Enforcer rules such as requireUpperBoundDeps or dependencyConvergence, so conflicts fail at build time, and banned dependency rules for libraries we have retired. The third part is automated upgrades: Renovate or Dependabot opens pull requests for every new BOM release, so staying current is a merge, not a project.
The fourth part is an SBOM for every artifact, produced by the CycloneDX Maven plugin or similar and stored with the artifact, plus vulnerability scanning in CI and at the repository manager. The fifth part is a bounded lag: services must be within, for example, two BOM releases or 60 days of the current platform, and within 7 days for a critical security fix. The lag is measured and visible on a dashboard per team.
- Curated platform BOMone tested version set, regular releases
- Build enforcementconvergence rules and banned dependencies in the parent
- Automated upgradesbot pull requests for each BOM release
- SBOM and scanninginventory per artifact, vulnerability checks
- Bounded lagfor example 60 days, 7 days for critical fixes
5 layers, from the top down. Step through them one at a time.
5Exceptions That Expire
A policy that never bends gets worked around. Some services will genuinely need a different version for a while: a vendor library that does not yet support the new Jackson, or a migration in progress. So the policy allows documented exceptions: a short record of which service, which library, why, who approved it, and an expiry date, for example 90 days. The build reads the exception list, so an approved exception does not fail the build, and an expired one does.
The reason for the expiry is that exceptions are cheap to grant and easy to forget. With a date, every exception comes back for review, and we either renew it with a reason or remove it. That keeps delivery unblocked without letting the fleet drift back to 400 separate decisions.
6Follow-up questions
How do you get teams to accept a central BOM?
By making it save them work. If the platform team tests the version set, publishes clear release notes and lets bots open the upgrade pull requests, using the BOM is less work than choosing versions locally. I would also give teams a voice in what goes into it, through a simple request process, so it does not feel imposed.
What do you measure to know the policy works?
The time from a critical advisory to all affected services being patched, the share of services within the allowed lag, the number of build failures caused by dependency conflicts, and the number of open and expired exceptions. If the first number drops from weeks to days, the policy is paying for itself.
Does this apply to Gradle builds too?
Yes. Gradle has platforms, which play the same role as a Maven BOM, and can import the same BOM. Dependency locking, constraints and plugins for SBOM generation cover the other parts. The policy is about outcomes, a tested version set, enforcement, automation, inventory and lag, so it does not depend on the build tool.
7Conclusion
In this answer, we saw why dependency management moved from projects to the organisation: hundreds of transitive dependencies make conflicts and vulnerabilities a fleet problem, Spring Boot's BOM proved that curated version sets work, and Log4Shell proved that we must know which versions run where within hours. The policy follows from that: a platform BOM, enforced convergence, automated upgrades, an SBOM per artifact and a bounded lag, with expiring exceptions so it does not block delivery.
Open with
The big change is scale. Fifteen years ago a service had a few dozen jars and the team chose most of them, so conflicts were a project issue.
Then, if they want more
Now a Spring Boot service resolves a couple of hundred, mostly transitive, and the same libraries are in every service, so a conflict or a vulnerability is the same problem across the fleet. Two things showed the way. Spring Boot's BOM showed that a curated, tested set of versions removes most conflicts, because they are solved once for everyone.
And Log4Shell showed that we need to know within hours which artifacts contain which versions; companies with an inventory patched in a day, others took weeks. So today I would set five things. A platform BOM, importing Spring Boot's and adding our own libraries, released on a regular cadence.
Enforcer rules in the corporate parent, like requireUpperBoundDeps, so conflicts fail the build. Automated upgrades through Renovate or Dependabot. An SBOM for every artifact, for example CycloneDX, plus scanning. And a bounded lag, say 60 days behind the platform, and 7 days for critical security fixes, measured on a dashboard.
To keep it from blocking delivery, I would allow documented exceptions with an owner and an expiry date, so they get reviewed instead of forgotten.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Maven guides
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Looking back over the last 15 years of Java builds, why has dependency conflict...": https://scrivio-interview-library.netlify.app/java/maven/979ab82f66/