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

前端 未结 19 1270
迷失自我
迷失自我 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:28

    What basically happens is,According to default updatePolicy of maven.Maven will fetch the jars from repo on daily basis.So if during 1st attempt your internet was not working then it would not try to fetch this jar again untill 24hours spent.

    Resolution :

    Either use

    mvn -U clean install
    

    where -U will force update the repo

    or use

    
        
          ...
          
            
              myRepo
              My Repository
              
                false
                always
                warn
              
             
          
          ...
        
      
    

    in your settings.xml

提交回复
热议问题