Skip to content

chore: avoid use of parent pom and maven properties where unnecessary#8322

Merged
nhumblot merged 2 commits intodependency-check:mainfrom
chadlwilson:simplify-properties
Feb 25, 2026
Merged

chore: avoid use of parent pom and maven properties where unnecessary#8322
nhumblot merged 2 commits intodependency-check:mainfrom
chadlwilson:simplify-properties

Conversation

@chadlwilson
Copy link
Copy Markdown
Collaborator

@chadlwilson chadlwilson commented Feb 23, 2026

Description of Change

IMHO our current way of using properties

  • adds unnecessarily confusing indirection to dependencies when tracking dependency clashes down
  • sometimes for plugins separates versions from the configuration that may be specific to that version you might want to see when reviewing a dependabot PR
  • tends to cause merge conflicts across dependabot PRs (minor nitpick)

Parent POM pluginManagement/dependencyManagement already serves this purpose for the most part, so I suggest should we reserve use of properties for cases where we really need to de-duplicate versions (even though dependabot can help us with updating such duplicates anyway) or add clarity for coupled versions via the properties.

Additionally, it is clearer to manage the special dependencies for the maven plugin in its own dependencyManagement since this has no effect on the rest of ODC, doesn't need the parent POM to reference; and has its own considerations to consider in isolation.

Appreciate this is a bit irritating to review, but can rest assured that if I accidentally downgraded anything that dependabot will re-upgrade it :-)

Related issues

N/A

Have test cases been added to cover the new functionality?

yes

@boring-cyborg boring-cyborg Bot added core changes to core maven changes to the maven plugin utils changes to utils labels Feb 23, 2026
@chadlwilson chadlwilson changed the title chore: avoid use of parent pom and maven properties where it is unnec… chore: avoid use of parent pom and maven properties where it is unnecessary Feb 23, 2026
@chadlwilson chadlwilson changed the title chore: avoid use of parent pom and maven properties where it is unnecessary chore: avoid use of parent pom and maven properties where unnecessary Feb 23, 2026
@chadlwilson chadlwilson force-pushed the simplify-properties branch 2 times, most recently from b598a36 to d3bffe8 Compare February 23, 2026 12:22
…essary

Using properties adds confusing indirection to dependencies when tracking things down; plugin management already serves this purpose, so I suggest should reserve use for cases where we want to de-duplicate versions (even though dependabot can help us with this anyway) or add clarity for coupled versions via the properties.

Additionally, it is clearer to manage dependencies for the maven plugin in its own dependencyManagement since this has no effect on the rest of ODC, and doesn't need a parent POM reference.

Signed-off-by: Chad Wilson <[email protected]>
nhumblot
nhumblot previously approved these changes Feb 25, 2026
Copy link
Copy Markdown
Collaborator

@nhumblot nhumblot left a comment

Choose a reason for hiding this comment

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

praise: thank you for this change!

I just left a note, I would be happy to get your opinion on it, then I can merge this PR. Thanks!

Comment thread maven/pom.xml Outdated
jeremylong
jeremylong previously approved these changes Feb 25, 2026
@chadlwilson chadlwilson dismissed stale reviews from jeremylong and nhumblot via e1e2674 February 25, 2026 14:11
This is a provided dependency alongside the API version; so don't think we need to actively manage this now. Was originally added in 081d21d to address a conflict which seems to no longer exist.

Signed-off-by: Chad Wilson <[email protected]>
Copy link
Copy Markdown
Collaborator

@nhumblot nhumblot left a comment

Choose a reason for hiding this comment

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

praise: thanks for the reactivity!

@nhumblot nhumblot merged commit 0159178 into dependency-check:main Feb 25, 2026
6 checks passed
@nhumblot nhumblot added this to the 12.2.1 milestone Feb 25, 2026
@chadlwilson chadlwilson deleted the simplify-properties branch February 26, 2026 02:51
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

core changes to core maven changes to the maven plugin utils changes to utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants