git 报错:was cached in the local repository, resolution will not be reattempted until the upda

前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到教程。 

Could not resolve dependencies for project com.foreveross:gaei-syncpm:jar:0.0.1-SNAPSHOT:
 Failure to find com.oracle.jdbc:ojdbc7:jar:11.2.0.4 in https://repo.maven.apache.org/maven2 was cached in the local repository, 
resolution will not be reattempted until the update interval of central has elapsed or updates are forced 
大体意思是jar包没有下载完整,不过也要分两种情况:
 
1.  可能就是本地没有下载完整,这里的原因可能第一次下载由于网络原因不成功,之后maven也没在尝试。
将本地Maven仓库中已下载的相关依赖 Jar 删掉,从新 build update 工程即可!
 
引用
This is often a false positive. Imagine you have a connection issue lasting only 5 seconds when Maven 3 tries to download a dependency, it will mark this dependency as unavailable for a delay. And thus will prevent you from replaying the build command even if the network issue is fixed. 
Just run the command with the -U option. Even if its description applies to snapshots, it seems to also fix the error if it occurred on a release. 
Example: mvn -U clean package

 

此外,我们可以在setting.xml中增加updatePolicy策略

 

 
setting.xml指导
 
在setting.xml的schema中有这样一个描述
 
schema
 
2.  另一种情况就是我们依赖的nexus也没有下载完整,这时候可能是配置的中央仓库代理仓库根本就不存在此jar,或者需要在第三方仓库中才能找到,此时我们应该尝试检查和配置代理仓库。

 

 

转自:https://blog.csdn.net/vtopqx/article/details/73457539

https://blog.csdn.net/shierqu/article/details/44787025

 

git clone 报错:Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 这个错误通常是由于以下几个原因引起的: 1. SSH key 配置错误:请确保你已经正确地将 SSH key 添加到你的 GitHub 或其他 Git 仓库账户中。你可以按照官方文档的指引来添加 SSH key。 2. 仓库不存在:请确保你要克隆的仓库确实存在,并且你有访问权限。你可以在仓库的页面上确认仓库是否存在,并检查你是否有访问权限。 3. 访问权限不正确:请确保你有足够的权限来克隆该仓库。有些仓库可能需要特定的权限才能进行克隆操作。 4. 网络连接问题:请确保你的网络连接正常,能够正常访问远程仓库。你可以尝试使用其他网络或者检查你的网络设置。 如果你已经确认了以上几个原因,并且仍然无法解决问题,你可以尝试以下方法: 1. 检查 SSH key 配置:请确保你的 SSH key 配置正确,并且已经添加到你的 Git 仓库账户中。 2. 检查仓库权限:请确认你有足够的权限来克隆该仓库。你可以联系仓库的管理员来获取更多信息。 3. 检查网络连接:请确保你的网络连接正常,并且能够正常访问远程仓库。你可以尝试使用其他网络或者检查你的网络设置。 4. 尝试使用 HTTPS 克隆:如果你无法解决 SSH key 配置问题,你可以尝试使用 HTTPS 协议来克隆仓库。使用 HTTPS 克隆可能需要输入用户名和密码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值