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
v4 SPI: Repository event listener for artifact/metadata changes #13520
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.
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.
Activity
feat: auto-discover Listener implementations via SpiService at sessio…
gnodet commentedon Nov 10, 2026
This issue was incorrectly closed by #13701. That PR implemented auto-discovery of
Listenerimplementations viaSpiService(issue #13805), which is a related but distinct feature.This issue (#13520) is about a dedicated
RepositoryListenerSPI inorg.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.