When maven says “resolution will not be reattempted until the update interval of MyRepo has elapsed”, where is that interval specified?

前端 未结 19 1278
迷失自我
迷失自我 2020-11-22 16:49

With maven, I occasionally hit an artifact that comes from some 3rd-party repo that I haven\'t built or included in my repository yet.

I\'ll get an error message fr

19条回答
  •  深忆病人
    2020-11-22 17:19

    While you can resolve this with a clean install (overriding any cached dependencies) as @Sanjeev-Gulgani suggests with mvn -U clean install

    You can also simply remove the cached dependency that is causing the problem with

    mvn dependency:purge-local-repository -DmanualInclude="groupId:artifactId"
    

    See mvn docs for more info.

提交回复
热议问题