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
There is no v4 API/SPI equivalent of AbstractMavenLifecycleParticipant or ProjectExecutionListener. The v4 Listener/Event mechanism is too generic —
it fires untyped Event objects without structured callbacks or mutable project access.
Who needs this
Tycho: TychoMavenLifecycleParticipant.afterProjectsRead() resolves the P2 target
platform and injects OSGi dependencies into every MavenProject before any mojo executes. TychoProjectExecutionListener.beforeProjectLifecycleExecution() does lazy per-project
P2 resolution with execution plan inspection.
m2e: Invokes lifecycle participants (including Tycho's) when reading/refreshing
workspace projects. Both a consumer and invoker of this SPI.
What's needed
A lifecycle participation SPI in org.apache.maven.api.spi with:
afterProjectsRead equivalent — access to the full reactor project list with ability
to mutate project dependencies (via ProjectManager)
Per-project before/after execution callbacks — with access to the execution plan
(list of MojoExecution for the project)
Activity
feat: introduce ProjectTransformer SPI for functional model transform…