首页 > 其他分享 >resolution will not be reattempted until the update interval of XXX has elapsed or updates are force

resolution will not be reattempted until the update interval of XXX has elapsed or updates are force

时间:2022-10-19 18:33:34浏览次数:107  
标签:interval force always XXX update 更新 elapsed updates com

resolution will not be reattempted until the update interval of XXX has elapsed or updates are force

环境

Java:1.8
maven:3.6.1

前言

我只是在pom.xml文件中,将version的数字改了下,结果出问题了。
包总是下不下来。所以idea的引用也没有更新。

其实这是一个很简单的错误,奈何我以前的工作都是手动导包。导致我maven的能力偏弱。

错误消息

[ERROR] Failed to execute goal on project model: 
Could not resolve dependencies for project com.xingren.clinic:model:jar:1.0.0-SNAPSHOT: Failure to find com.xingren.service:medevac-client:jar:1.2.33-SNAPSHOT in http://nexus.aihaisi.com/repository/public/ was cached in the local repository, 
resolution will not be reattempted until the update interval of xr-public has elapsed or updates are forced -> [Help 1]
  • 1
  • 2
  • 3

主要错误消息,如题:
就是resolution will not be reattempted until the update interval of XXX has elapsed or updates are force

意思就是:

在 XXX的更新间隔过去或强制更新之前,不会重新尝试解析。

如果你去本地的maven仓库,你会发现,其只有lastUpdate结尾的文件,没有jar包。

这个时候,你无论怎么点击IDEA中的Reimports All Maven Projects都是没有用的。原因上面也说了,要么等更新时间过去,要么强制更新。
maven的默认更新时间为day,即一天更新一次。

所以我们一般都是采用强制更新的方式。

解决办法

命令行的方式

mvn clean install -U
  • 1

修改settings.xml

添加<updatePolicy>always</updatePolicy>

<repositories>
   <repository>
     <id>xr-snapshots</id>
 	  <url>http://nexus.alibaba.com/repository/snapshots/</url>
     <snapshots>
       <enabled>true</enabled>
       <!-- 注意 -- >
       <updatePolicy>always</updatePolicy>
     </snapshots>
     <releases>
       <enabled>false</enabled>
       <!-- 注意 -- >
       <updatePolicy>always</updatePolicy>
     </releases>
   </repository>
 </repositories>

<pluginRepositories>
<pluginRepository>
<id>xr-plugins</id>
<name>xingren plugins</name>
<url>http://nexus.alibaba.com/repository/public/</url>
<releases>
<enabled>true</enabled>
<!-- 注意 -- >
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<!-- 注意 -- >
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34

我采用的是使用命令行。

总结

在确定远程仓库jar包存在,配置也没有错的情况下,
使用强制更新。

参考地址:
https://www.cnblogs.com/huojiao2006/articles/5195965.html
https://stackoverflow.com/questions/4701532/force-maven-update

https://blog.csdn.net/u013066244/article/details/91986308

标签:interval,force,always,XXX,update,更新,elapsed,updates,com
From: https://www.cnblogs.com/sunny3158/p/16807321.html

相关文章

  • CodeCraft-21 and Codeforces Round #711 C
    C.PlanarReflections考虑dpdp[i][j]表示i能量的在第j层的cnt显然我们会分裂成左右两部分dp[i][j]=dp[i-1][n-j]+dp[i][j-1]我们为了不讨论方向问题直接记忆化搜索......
  • Educational Codeforces Round 137 (Rated for Div. 2) - D. Problem with Random Tes
    期望+暴力[Problem-D-Codeforces](https://codeforces.com/contest/1743/problem/E)题意给出一个长度为\(n\;(1<=n<=10^6)\)的字符串\(s\),选取两个\(s\)的......
  • Educational Codeforces Round 137 (Rated for Div. 2) - E. FTL
    DPProblem-E-Codeforces题意有个BOSS有\(H\;(1<=H<=5000)\)血量,\(s\)点防御有两种武器可用攻击BOSS,伤害分别为\(p_1,p_2\;(s<min(p_1,p_2)<=5000)\),冷却......
  • Codeforces Round #712 A
    A.BalancetheBits显然对于一个字符串s我们每一对0之间必须是()一个合法的括号才行)(也可以显然是等价的因为你a拿前者b就会拿后者所以这就要求了我们0的个数必须是偶......
  • python manage.py startapp XXX报错【TypeError: unsupported operand type(s) for /:
    查看日志提示【 'DIRS':[BASE_DIR/'templates']】【 File"D:\study\test\djangoProject\djangoProject\settings.py",line57,in<module>】找到setting文件的li......
  • rpm -Uvh *.rpm --nodeps --force
    rpm-Uvh*.rpm--nodeps--force含义:-U:升级软件,若未软件尚未安装,则安装软件。-v:表示显示详细信息。-h:以"#"号显示安装进度。--force:强制安装--nodeps:不考虑相依属性的关......
  • MySQL 错误码: 1067Invalid default value for ‘xxx‘问题解决
    声明,此文为转载内容,原作者地址为:https://blog.csdn.net/qq_38974638/article/details/1223005381.问题描述:错误码:1067Invaliddefaultvaluefor'gmt_create......
  • Educational Codeforces Round 107 D
    D.MinCostString显然我们对于每两个组都要本质不同我们考虑本质不同两个组的数量为k^2我们考虑如何构造将这k^2的连接起来不然显然如果一个借着一个显然会产生新的......
  • Codeforces Round #713 E
    E.PermutationbySum显然轻松上下界判断考虑如何构造我们将它整成最小的样子1234....k个从后往前要是他需要我们就直接加上去就可以了#include<bits/stdc++.h......
  • Divide by Zero 2021 and Codeforces Round #714 C
    C.AddOne显然对于每一位单独分析我们经过一次进位只能变成10这样该怎么做呢我们显然可以dp设dp[i][j]表示i(0-9)经过j次变换有几位显然我们初始化i+j<10就是1elsed......