Skip to content

feat: add dependency redundancy analysis report#2782

Draft
bhabegger wants to merge 1 commit intoapache:trunkfrom
bhabegger:agent/list-redundant-dependencies-2026-03-04-151200
Draft

feat: add dependency redundancy analysis report#2782
bhabegger wants to merge 1 commit intoapache:trunkfrom
bhabegger:agent/list-redundant-dependencies-2026-03-04-151200

Conversation

@bhabegger
Copy link
Contributor

Add comprehensive analysis of Maven dependencies across all modules to identify:

  • Dependencies with multiple conflicting versions
  • Frequently declared dependencies that could be centralized
  • Redundant version declarations already managed in parent
  • Common test dependencies used across modules

The report identifies 272 unique dependencies across 46 modules, with specific recommendations for version standardization and dependency management improvements.

Analysis script (analyze_dependencies.py) parses all pom.xml files and generates a detailed markdown report with actionable recommendations.

Add comprehensive analysis of Maven dependencies across all modules to identify:
- Dependencies with multiple conflicting versions
- Frequently declared dependencies that could be centralized
- Redundant version declarations already managed in parent
- Common test dependencies used across modules

The report identifies 272 unique dependencies across 46 modules, with
specific recommendations for version standardization and dependency management
improvements.

Analysis script (analyze_dependencies.py) parses all pom.xml files and
generates a detailed markdown report with actionable recommendations.

Co-Authored-By: Autonomous Agent <agent@corp.adobe.com>
Modules: oak-benchmarks, oak-blob-cloud, oak-blob-plugins, oak-core, oak-core
... and 12 more

### org.apache.jackrabbit:jackrabbit-jcr-commons
Copy link
Contributor

Choose a reason for hiding this comment

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

These entries are irrelevant, because we always use the project version. It does not need to be declared anywhere else.

- oak-webapp: javax.jcr:jcr (specifies version 2.0)

## 4. Test Dependencies Analysis

Copy link
Contributor

Choose a reason for hiding this comment

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

why is that a problem?

@reschke
Copy link
Contributor

reschke commented Mar 13, 2026

FWIW, the script would need to be changed a lot to generate useable statistics. It does find a few instances that could be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants