Skip to content

Migrate DefaultMaven orchestrator and CLI to v4 API #13466

Open

Description

@gnodet

Part of #13460 — Migrate Maven internals from v3 to v4 API

Context

DefaultMaven is the top-level build orchestrator. It has ~42 references to v3 types vs only ~7 to v4 API. Once all subsystems below it are migrated, it can work with v4 types directly.

The CLI (maven-cli/MavenInvoker) is mixed — it uses some v4 services but ultimately drives Maven.execute(MavenExecutionRequest) and processes v3 MavenExecutionResult.

Goal

Final phase: make the orchestrator and CLI work with v4 types natively.

Key files

  • impl/maven-core/.../DefaultMaven.java
  • impl/maven-cli/.../MavenInvoker.java
  • impl/maven-core/.../execution/MavenExecutionRequest.java
  • impl/maven-core/.../execution/MavenExecutionResult.java

Approach

  1. DefaultMaven creates a v4 Session directly (instead of v3 MavenSession)
  2. Calls v4 graph builder, v4 lifecycle executor
  3. v3 MavenExecutionRequest / MavenExecutionResult become compat wrappers or are replaced by v4 equivalents
  4. CLI creates v4 session and invokes v4 entry points

Dependencies

Complexity

Medium once dependencies are done. DefaultMaven is a single (central) file.

Claude Code on behalf of Guillaume Nodet

Activity

  1. added
    enhancement
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions