Skip to content

v4 SPI: Repository event listener for artifact/metadata changes #13520

Open

Description

@gnodet

Parent: #13499

Problem

There is no v4 SPI for observing repository events (artifact installed, metadata
updated). IDE embedders that maintain indexes of available artifacts must override
RepositoryListener — an internal component — to observe these events.

Who needs this

  • m2e: Overrides RepositoryListener to index workspace repositories for IDE
    features (dependency search, content assist, etc.).

What's needed

A repository event listener SPI in org.apache.maven.api.spi that notifies observers
when artifacts or metadata are installed, deployed, or updated in local or remote
repositories. This is a simple event/callback SPI — no complex design needed.

This would eliminate m2e's RepositoryListener component override.

🤖 Drafted with Claude Code (Claude Opus 4.6, interactive mode). Reviewed and confirmed by @gnodet before submission.

Activity

  1. added
    enhancement
    on Oct 14, 2026
  2. gnodet commented on Nov 10, 2026

    @gnodet
    ContributorAuthor

    This issue was incorrectly closed by #13701. That PR implemented auto-discovery of Listener implementations via SpiService (issue #13805), which is a related but distinct feature.

    This issue (#13520) is about a dedicated RepositoryListener SPI in org.apache.maven.api.spi — a first-class interface that IDE embedders (m2e, etc.) can implement to observe repository events without overriding Maven internals. That work has not been done yet and this issue remains valid.

  3. reopened this on Nov 10, 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