Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MNG-8602] Fix BOM consumer pom #2139

Merged
merged 2 commits into from
Mar 4, 2025
Merged

[MNG-8602] Fix BOM consumer pom #2139

merged 2 commits into from
Mar 4, 2025

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 3, 2025

JIRA issue: MNG-8602

@gnodet gnodet added this to the 4.0.0-rc-3 milestone Mar 3, 2025
.preserveModelVersion(false)
.root(false)
.parent(null)
// .dependencyManagement(dependencyManagement.withDependencies(dependencies))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this added at all? Was it envisioned that BOM may contain only reactor deps? As then we may want to enforce that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that the consumer POM for the BOM was originally created like a POM, i.e. from the raw model, and it was missing some versions for managed dependencies. The fix was overwriting the dependency version with the model version. This is now correctly implemented by using the effective model instead of the raw model.

@gnodet gnodet merged commit 6197545 into apache:master Mar 4, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants