apache / apache/maven

[MNG-5641] AbstractMavenLifecycleParticipant#afterSessionStart is never invoked

Open
#6,676 3 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
21h 11m
Merged PRs (30d)
312

Description

**[Tamas Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)** opened **[MNG-5641](https://issues.apache.org/jira/browse/MNG-5641?redirect=false)** and commented

Seems this affects all released maven versions.

The problem, is that `org.apache.maven.DefaultMaven#getLifecycleParticipants` is invoked with empty list, as there are no projects read up yet.

https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/DefaultMaven.java#L233

Moreover, there is a comment on class, suggesting to remove this method. So, maybe just remove it?

https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/AbstractMavenLifecycleParticipant.java#L56

---

**Issue Links:**
- [MNG-5771](https://issues.apache.org/jira/browse/MNG-5771) improved user-configurable core extensions mechanism
(_**"is superceded by"**_)

0 votes, 5 watchers

Contributor guide

Open the contributing guide

Research direction

Start with maven-core/src/main/java/org/apache/maven/DefaultMaven.java at getLifecycleParticipants and AbstractMavenLifecycleParticipant.java, including the class comment. Review the superseding MNG-5771 work before deciding whether this issue remains actionable; done is a resolution consistent with that newer core-extension mechanism.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.