You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christoph Läubrich (Jira)" <ji...@apache.org> on 2022/11/06 04:50:00 UTC

[jira] [Created] (MNG-7591) Enhance MavenWorkspaceReader to find workspace projects

Christoph Läubrich created MNG-7591:
---------------------------------------

             Summary: Enhance MavenWorkspaceReader to find workspace projects
                 Key: MNG-7591
                 URL: https://issues.apache.org/jira/browse/MNG-7591
             Project: Maven
          Issue Type: Improvement
            Reporter: Christoph Läubrich


The org.apache.maven.repository.internal.MavenWorkspaceReader currently allows for finding a model for a given artifact.

But recently I noticed at m2eclipse (IDE extension) that when loading a maven project maven also loads all the parent projects, of course we have them in the IDE as well, so such action can lead to multiple times loading the same maven project.

I therefore like to suggest to enhance MavenWorkspaceReader with a method:

MavenProject findProject( Artifact artifact );

or just

MavenProject findProject( File pomFile );

to allow for example DefaultProjectBuilder to take this into account when loading parents.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)