← Back to Pull requests

build(deps): upgrade org.apache.maven.resolver from 1.3.1 to 2.0.23 #20386

Closed
unknown closed this pull request without merging on Sep 24, 2026 02:05 UTC
View on GitHub
unknown unknown commented on Sep 19, 2026 06:53 UTC
Author

Description

Upgrades org.apache.maven.resolver from 1.3.1 to 2.0.23. A plain version bump breaks the build because Resolver 2.0 removed the ServiceLocator bootstrap API used by PullDependencies (the pull-deps CLI tool, the only consumer of this dependency).

See:
#20371
#20373
#20374
#20375
#20376

Migrated PullDependencies off the removed ServiceLocator API

Replaced the DefaultServiceLocator/MavenRepositorySystemUtils bootstrap with RepositorySystemSupplier/SessionBuilderSupplier (from the new maven-resolver-supplier-mvn3 artifact). Using SessionBuilderSupplier matters: it restores Maven's default scope-based dependency selection, without which collection would eagerly walk into dependencies' own test-scope/optional transitive graphs.

Updated dependency declarations

Bumped all org.apache.maven.resolver artifacts to 2.0.23, centrally managed via a maven.resolver.version property in the root POM. Renamed maven-resolver-transport-http to maven-resolver-transport-apache (renamed upstream) and dropped org.apache.maven:maven-resolver-provider, superseded by maven-resolver-supplier-mvn3.

Replaced javax.xml.bind.DatatypeConverter with java.util.HexFormat

ExportMetadata was the only reason services needed jakarta.xml.bind-api directly. java.util.HexFormat covers the same hex encode/decode without the extra dependency, with output kept byte-for-byte identical via HexFormat.of().withUpperCase().

<hr>

##### Key changed/added classes in this PR
PullDependencies
PullDependenciesTest
* ExportMetadata

<hr>

This PR has:

  • been self-reviewed.

  • added or updated version, license, or notice information in licenses.yaml

  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.

  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • Diff: 269 lines (+201 / -68) across 3 files Reviewer: GWphua Review duration: 6911m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 269 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20386"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.6% · Safe to merge
    15.6%
    Repository