Maven fails to find local artifact

后端 未结 14 1636
Happy的楠姐
Happy的楠姐 2020-12-04 11:40

Occasionally maven complains that a particular dependency, which is built and packaged locally, cannot be found in the local repository while building another project that h

14条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 12:32

    Maven remembers when it didn't find something. The key is "resolution will not be reattempted until the update interval of internal has elapsed or updates are forced ->"

    The quick solution is to delete your local "repository" subdirectory for the problem artifact - assuming you have fixed the problem with it. :)

    mvn -U will force update from remote repository - again, assuming you have now populated remote with said artifact.

提交回复
热议问题