[ https://issues.apache.org/jira/browse/MNG-6979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187254#comment-17187254 ]
Falko Modler edited comment on MNG-6979 at 8/30/20, 4:08 PM: ------------------------------------------------------------- I think there is a misunderstanding regarding the linked pull request. The PR adds a workaround to a Maven extension ([gitflow-incremental-builder|https://github.com/vackosar/gitflow-incremental-builder]) that was running into this Maven core problem while [~gastaldi] was trying out the extension in Quarkus. So AFAICS there is no PR containing the core fix, yet. was (Author: famod): I think there is a misunderstanding regarding the linked pull request. The PR adds a workaround to a Maven extension ([gitflow-incremental-builder|https://github.com/vackosar/gitflow-incremental-builder]) that was running into this Maven core problem while [~gastaldi] was trying out the extension in Quarkus. So AFAICS there is no PR containing the core fix yet. > MavenSession.getCurrentProject may return an incorrect project in a > multimodule build > ------------------------------------------------------------------------------------- > > Key: MNG-6979 > URL: https://issues.apache.org/jira/browse/MNG-6979 > Project: Maven > Issue Type: Bug > Components: core > Affects Versions: 3.6.3 > Reporter: George Gastaldi > Priority: Major > Attachments: project.zip > > > Having an extension that just displays the current project, like in: > {code:java} > @Singleton > @Named > public class BuildModuleSelector extends AbstractMavenLifecycleParticipant { > @Inject > private Logger logger; > @Override > public void afterProjectsRead(MavenSession session) throws > MavenExecutionException { > logger.info(session.getCurrentProject().toString()); > > session.setProjects(Collections.singletonList(session.getCurrentProject())); > } > } > {code} > Will fail to resolve the current project when executed in the root of a > project that depends on a module with the same parent. -- This message was sent by Atlassian Jira (v8.3.4#803005)