Finding missing Maven artifacts

后端 未结 9 2258
你的背包
你的背包 2021-01-02 05:01

I\'m new to Maven, and struggling with adding dependencies. I\'m trying to convert an existing project to Maven, and after adding the dependencies for all the jars in my ref

9条回答
  •  灰色年华
    2021-01-02 05:42

    Your problem might be something to do with MNG-4142. This bug means that maven will not download a new snapshot if localCopy is set to true in the artifact maven-metadata-local.xml.

    Note that the title of this bug is slightly misleading so it is work reading the comments.

    You might think that using the -U flag with maven would fix this problem but apparently this is not the case.

    The current workaround seems to be searching for all instances of maven-metadata-local.xml and changing the value of localCopy to false.

提交回复
热议问题