You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define v4 API for project dependency graph and migrate graph builder #13463
Part of #13460 — Migrate Maven internals from v3 to v4 API
Context
The project dependency graph / reactor concept has no v4 API equivalent today. The v3 ProjectDependencyGraph interface and its implementations (DefaultProjectDependencyGraph, FilteredProjectDependencyGraph) live in maven-core and operate entirely on MavenProject.
The DefaultGraphBuilder (~63 references to v3 types) builds the reactor by collecting projects, sorting them, and constructing the dependency graph — all using v3 types.
Goal
Design a v4 API for the project graph (new interfaces in api/maven-api-core or api/maven-api-services)
Implement the graph builder in impl/maven-impl using v4 Project and Session
Cross-referencing #13499 — from Tycho's perspective, a contributor/decorator pattern for the graph builder SPI would be preferable to requiring full graph builder replacement.
Tycho's TychoGraphBuilder currently overrides DefaultGraphBuilder via @Priority, delegates to it first, then adds P2/OSGi-derived inter-project dependency edges. A SPI that lets extensions contribute additional edges to the reactor graph (rather than replacing the entire builder) would be cleaner and composable with other extensions.
Activity
gnodet commentedon Oct 14, 2026
Cross-referencing #13499 — from Tycho's perspective, a contributor/decorator pattern for the graph builder SPI would be preferable to requiring full graph builder replacement.
Tycho's
TychoGraphBuildercurrently overridesDefaultGraphBuildervia@Priority, delegates to it first, then adds P2/OSGi-derived inter-project dependency edges. A SPI that lets extensions contribute additional edges to the reactor graph (rather than replacing the entire builder) would be cleaner and composable with other extensions.Claude Code on behalf of Guillaume Nodet