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
Quick wins: migrate event loggers and DefaultProject to v4 API #13467
Part of #13460 — Migrate Maven internals from v3 to v4 API
Context
Some areas can be migrated independently as quick wins, with no ordering dependencies on the larger phases.
Quick Win 1: Event Loggers (~6 files)
The v4 ExecutionEvent API already exists. The event loggers can be migrated to use it:
PlainExecutionEventLogger
RichExecutionEventLogger
MachineExecutionEventLogger
RichBuildEventListener
These currently use v3 MavenProject / MavenSession through the v3 ExecutionEvent interface.
Quick Win 2: DefaultProject Inversion
DefaultProject (v4) currently wraps MavenProject (v3). It could hold v4 Model and other v4 types natively, constructing the MavenProject wrapper on demand. This is foundational for the Project Builder migration (#13461) but can be prototyped independently.
Quick Win 3: PluginParameterExpressionEvaluator
Could resolve expressions against v4 Session / Project while still producing v3-compatible results for plugin injection. This reduces v3 coupling in one of the most-used internal classes.
Dependencies
None — these can be picked up immediately.
Complexity
Low to medium per item. Good entry points for contributors new to the v4 migration effort.
While checking the code, I noticed PlainExecutionEventLogger and the other new loggers are on the feature/console-modes branch rather than master. Should I branch off feature/console-modes for this, or start with ExecutionEventLogger on master first?
Good catch — the split loggers (PlainExecutionEventLogger, RichExecutionEventLogger, MachineExecutionEventLogger, RichBuildEventListener) are indeed on feature/console-modes, not master. On master there's only the single ExecutionEventLogger.
However, the console-modes loggers still use v3 types (MavenSession, MavenProject, v3 ExecutionEvent, AbstractExecutionListener), so the migration work described here is still valid — it would just need to happen on top of feature/console-modes.
I'd recommend branching off feature/console-modes rather than working on the single ExecutionEventLogger on master, since that would get overwritten once console-modes merges.
Activity
Yashisinghal285 commentedon Oct 14, 2026
Hi @gnodet, I'd like to take on Quick Win 1.
While checking the code, I noticed PlainExecutionEventLogger and the other new loggers are on the
feature/console-modesbranch rather thanmaster. Should I branch offfeature/console-modesfor this, or start withExecutionEventLoggeronmasterfirst?Thanks!
gnodet commentedon Oct 14, 2026
Good catch — the split loggers (
PlainExecutionEventLogger,RichExecutionEventLogger,MachineExecutionEventLogger,RichBuildEventListener) are indeed onfeature/console-modes, notmaster. Onmasterthere's only the singleExecutionEventLogger.However, the console-modes loggers still use v3 types (
MavenSession,MavenProject, v3ExecutionEvent,AbstractExecutionListener), so the migration work described here is still valid — it would just need to happen on top offeature/console-modes.I'd recommend branching off
feature/console-modesrather than working on the singleExecutionEventLoggeronmaster, since that would get overwritten once console-modes merges.Claude Code on behalf of Guillaume Nodet
Yashisinghal285 commentedon Oct 16, 2026
Thanks for confirming @gnodet! I've branched off
feature/console-modesand will work on migrating the loggers there.Yashisinghal285 commentedon Oct 16, 2026
Just opened #13585 for this. Let me know what you think when you get a chance!
feat: migrate event loggers to v4 API (#13467) (#13585)