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/06/12 05:28:00 UTC

[jira] [Created] (MNG-7496) DefaultArtifactDescriptorReader.loadPom() should query the MavenWorkspaceReader first

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

             Summary: DefaultArtifactDescriptorReader.loadPom() should query the MavenWorkspaceReader first
                 Key: MNG-7496
                 URL: https://issues.apache.org/jira/browse/MNG-7496
             Project: Maven
          Issue Type: Improvement
    Affects Versions: 3.8.6
            Reporter: Christoph Läubrich


Now WorkspaceReaders work in extensions and while I develop a basic implementation in Tycho I noticed that I get asked for a pom, but not for the model first.

The reason is that DefaultArtifactDescriptorReader.loadPom() do not query the workspace reader but always resolves the pom artifact and then reads the pom file. But afterwards, it do query the maven reader and use the model there.

I don't know if there is an need to download the pom always (but not use it...), at least in my case it requires me to write the model to disk (with possibly incomplete content as I only get the pom artifact, but not the actual artifact the model is searched for) to make maven happy or I'll get nasty:

[WARNING] The POM for ... is missing, no dependency information available

My idea would be, to simply first as the WSR for the model and if it is present do not perform any actions or, at least ask the WSR first before fail and issue a warning...



--
This message was sent by Atlassian Jira
(v8.20.7#820007)