Skip to content

Quick wins: migrate event loggers and DefaultProject to v4 API #13467

Open

Description

@gnodet

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.

Claude Code on behalf of Guillaume Nodet

Activity

  1. added
    enhancement
    on Oct 13, 2026
  2. Yashisinghal285 commented on Oct 14, 2026

    @Yashisinghal285
    Contributor

    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-modes branch rather than master. Should I branch off feature/console-modes for this, or start with ExecutionEventLogger on master first?

    Thanks!

  3. gnodet commented on Oct 14, 2026

    @gnodet
    ContributorAuthor

    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.

    Claude Code on behalf of Guillaume Nodet

  4. Yashisinghal285 commented on Oct 16, 2026

    @Yashisinghal285
    Contributor

    Thanks for confirming @gnodet! I've branched off feature/console-modes and will work on migrating the loggers there.

  5. Yashisinghal285 commented on Oct 16, 2026

    @Yashisinghal285
    Contributor

    Just opened #13585 for this. Let me know what you think when you get a chance!

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