[ 
https://issues.apache.org/jira/browse/MNG-7496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet reopened MNG-7496:
----------------------------------

> 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
>            Priority: Major
>
> 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.10#820010)

Reply via email to