Help with BOM versions inheritance #13614
Unanswered
AntonioLyubchev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am in a very confusing situation.
I have 2 projects:
observability-commons
observability-api
The commons is a common lib with this POM:
observability-api's POM looks like this:
See how observability-api uses as a dependency obseravbility-commons.
However, if I don't include
in observability-api - it pulls some weird versions of some artifacts. For example when dependencyManagement is included it pulls the correct 1.48, and without it I get these weird version downgrades, from Spring Boot maybe?

So there has to be a way to achieve what I am trying to do without doing a pom import of the common lib. I just want to create a common lib that abstracts away the configuration of spring boot OTEL starter.
Please assist, I have been stuck in these 2 POM files for a few days now...
The problem with the downgrade is this:
I just want mt BOM versions from the commons to be forced on any project that imports it, without that project needing to do anything more than adding a dependency entry.
Beta Was this translation helpful? Give feedback.
All reactions