Quick revision
The short answer
A BOM, bill of materials, is a pom-packaged artifact whose dependencyManagement lists library versions that are tested together. Importing it with <type>pom</type> and <scope>import</scope> copies those managed versions into our project without making it our parent. spring-boot-dependencies is the BOM behind spring-boot-starter-parent, so importing it gives the same library versions to projects that need a different parent; what it does not give is the parent's plugin configuration, resource filtering and compiler settings, and overriding a version with a property such as <jackson-bom.version> only works with the parent.
What to remember
In this answer, we saw that a BOM is a pom-packaged artifact whose dependencyManagement lists versions tested together, and that importing it with type pom and scope import copies those versions into our project without making it our parent. spring-boot-dependencies is the BOM behind spring-boot-starter-parent, so importing it gives the same library versions, but not the parent's plugin configuration, resource filtering and compiler settings. Version overrides through properties such as jackson-bom.version only work with the parent; with an import, we declare our own managed entry before the Boot BOM.
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.
A BOM, bill of materials, is a pom-packaged artifact whose dependencyManagement lists library versions that are tested together. Importing it with <type>pom</type> and <scope>import</scope> copies those managed versions into our project without making it our parent. spring-boot-dependencies is the BOM behind spring-boot-starter-parent, so importing it gives the same library versions to projects that need a different parent; what it does not give is the parent's plugin configuration, resource filtering and compiler settings, and overriding a version with a property such as <jackson-bom.version> only works with the parent.
Why this question is asked
Most Spring Boot projects start from spring-boot-starter-parent, and for many that is fine. But companies often have their own corporate parent, and Maven allows only one parent per project. Interviewers ask about BOMs because they are how the Java ecosystem keeps dozens of libraries at compatible versions, and because the differences between importing the BOM and using the parent cause real surprises, especially when overriding a version. In this answer, we will recap what a BOM is, import spring-boot-dependencies, compare it with the parent, and see how version overrides work in each case.
1A Quick Recap of BOMs
A BOM is a normal Maven POM with packaging pom. It contains no code. Its important part is a dependencyManagement section that says, for each library it covers, which version to use. The versions are chosen and tested together by whoever publishes the BOM, which is the real value: Spring Boot's team checks that its chosen versions of Jackson, Hibernate, Netty, Micrometer and hundreds of other libraries work with each other and with Spring.
Many libraries publish their own BOM to keep their modules aligned, such as jackson-bom, netty-bom or junit-bom. Spring Boot's BOM imports several of these, so one import covers a whole stack.
2Importing spring-boot-dependencies
A project that has its own parent can still get Spring Boot's versions by importing the BOM.
The import scope means Maven reads the dependencyManagement section of spring-boot-dependencies and merges it into ours. Nothing is added to the classpath by the import itself; the starters we list in dependencies get their versions from the merged entries, and so do all their transitive dependencies.
3What the Parent Gives That the BOM Does Not
spring-boot-starter-parent itself has spring-boot-dependencies as its parent, so the versions are the same either way. But the starter parent adds build configuration on top. It sets the Java release level from a java.version property, configures UTF-8 source encoding, sets up resource filtering for application.properties and application.yml with the @...@ placeholder style, and configures plugins such as spring-boot-maven-plugin with a repackage execution, along with sensible settings for others.
With a plain BOM import, none of this happens. We must configure the compiler release, encoding and, most importantly, the spring-boot-maven-plugin ourselves, including its repackage goal, or the build produces an ordinary jar that cannot run with java -jar.
| Feature | spring-boot-starter-parent | Import spring-boot-dependencies |
|---|---|---|
| Managed library versions | yes | yes, the same ones |
| Override a version with a property | yes, e.g. <jackson-bom.version> | no: add a managed entry instead |
| Plugin versions and configuration | yes, e.g. repackage | no: configure it ourselves |
| Compiler release, UTF-8 encoding | yes, from java.version | no |
| Resource filtering of application.* | yes, @...@ placeholders | no |
| Keeps our own parent | no: it is the parent | yes |
4Overriding a Managed Version
With the parent, Spring Boot's managed versions are written in terms of properties, such as jackson-bom.version. Because our POM inherits from that parent, our own properties override the inherited ones, and the property feeds the version in the inherited dependencyManagement. So setting <jackson-bom.version> in our properties changes the Jackson version.
With a BOM import, that does not work. Maven resolves the imported BOM with its own properties, then copies the resulting versions into our project. Our properties are never consulted, so setting jackson-bom.version has no effect, which is a common source of confusion. Property names also differ between Boot versions, for example after the move to Jackson 3 in Spring Boot 4, so check the dependency versions appendix of the version in use.
5Follow-up questions
How do you override one managed version when you only import the BOM?
Declare the artifact, or the library's own BOM, in our dependencyManagement before the spring-boot-dependencies import. Entries written directly in our dependencyManagement always win over imported ones, and among imports the first declared wins, so placing jackson-bom 2.18.3 first makes it override the Jackson version that Boot's BOM would bring. Then check the result with mvn dependency:tree.
Can we import several BOMs at once?
Yes, and that is one of their main advantages over a parent. But when two BOMs manage the same artifact, the first import wins, so the order of imports becomes a decision we must make deliberately.
Does Gradle use the same Spring Boot BOM?
Yes. Gradle can import the same BOM as a platform, and the Spring dependency management plugin also supports it, so versions match between Maven and Gradle projects.
6Conclusion
In this answer, we saw that a BOM is a pom-packaged artifact whose dependencyManagement lists versions tested together, and that importing it with type pom and scope import copies those versions into our project without making it our parent. spring-boot-dependencies is the BOM behind spring-boot-starter-parent, so importing it gives the same library versions, but not the parent's plugin configuration, resource filtering and compiler settings. Version overrides through properties such as jackson-bom.version only work with the parent; with an import, we declare our own managed entry before the Boot BOM.
Open with
A BOM, a bill of materials, is a POM with packaging pom whose dependencyManagement section lists versions of many libraries that were tested together. When I import it in my own dependencyManagement with type pom and scope import, Maven copies those managed versions into my project, so my dependencies need no versions and transitive ones are aligned as well. spring-boot-dependencies is exactly the BOM that spring-boot-starter-parent is built on.
Then, if they want more
A project that already has a corporate parent cannot also use the Boot parent, because Maven allows only one parent, so it imports spring-boot-dependencies and gets identical library versions.
The difference is everything else the starter parent provides: plugin versions and configuration, including the repackage goal of spring-boot-maven-plugin, the Java release from java.version, UTF-8 encoding and resource filtering for application properties. With a plain import I have to configure those myself, otherwise I get a jar that does not run with java -jar. Overriding also differs.
With the parent I can set a property like jackson-bom.version, because the inherited dependencyManagement uses that property. With an import the BOM is resolved with its own properties, so mine are ignored; instead I declare the artifact or its own BOM in my dependencyManagement before the Boot import, since direct entries and earlier imports win.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Spring Boot 4
- 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 "What is a BOM in Maven, and why do Spring Boot projects that do not use...": https://scrivio-interview-library.netlify.app/java/maven/e779a10b57/