You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Surendra (Jira)" <ji...@apache.org> on 2022/10/20 11:25:00 UTC

[jira] [Comment Edited] (MINSTALL-178) Maven Doesn't Pick Locally Installed Package / Artifact

    [ https://issues.apache.org/jira/browse/MINSTALL-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17621026#comment-17621026 ] 

Surendra edited comment on MINSTALL-178 at 10/20/22 11:24 AM:
--------------------------------------------------------------

[~michael-o] please help understand this maven error, when does it happen? Why does maven look for a maven-metadata.xml file?


was (Author: JIRAUSER297246):
[~michael-o] please help understand this maven error, when does it happen? Why does maven look for a maven-metadat.xml file?

> Maven Doesn't Pick Locally Installed Package / Artifact
> -------------------------------------------------------
>
>                 Key: MINSTALL-178
>                 URL: https://issues.apache.org/jira/browse/MINSTALL-178
>             Project: Maven Install Plugin
>          Issue Type: Bug
>          Components: install:install
>    Affects Versions: 3.0.1
>         Environment: Linux
>            Reporter: Surendra
>            Priority: Major
>              Labels: easyfix, performance
>             Fix For: waiting-for-feedback
>
>
> Java Version - 11
> `mvn clean install` is not picking up a locally installed snapshot artifact that is present in the .m2 folder.
> It complains with the following warning and then start looking for this artifact in maven central -
>  
> {code:java}
> [DEBUG]  Could not find metadata
> <GROUP_ID>:<ARTIFACT_ID>:0.0.1-SNAPSHOT/maven-metadata.xml in local {code}
>  
> I checked .m2 directory and it has maven-metadata-local.xml, why does maven look for maven-metadata.xml file? It's a locally installed artifact and maven should be able to pick this up directly. Looks like I'm missing something.



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