_remote.repositories文件

本地库中的包都有一个_remote.repositories文件,示例:

#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Fri Aug 10 10:04:28 CST 2018
spring-boot-starter-web-1.5.9.RELEASE.pom>test1-nexus-mirro=
spring-boot-starter-web-1.5.9.RELEASE.jar>test1-nexus-mirro=
spring-boot-starter-web-1.5.9.RELEASE.pom>test2-nexus-mirro=
spring-boot-starter-web-1.5.9.RELEASE.jar>test2-nexus-mirro=

这个文件存储的是每次从私服或者中央仓库下载的jar包的信息。

第3行:pom文件>私服ID名称

第4行:jar文件>私服ID名称

第5、6行:从另一个私服下载的记录

假设我们更换了私服地址为nexus-abc,并且该私服不存在该资源,那么就会生成logback-parent-1.1.1.pom.lastUpdated文件;

也就是说,_remote.repositories文件,标示该资源的来源,如果你有这个_remote.repositories,那就会在访问本地的同时,必须确保远程上有才行(这里的远程是setting文件中配置的镜像或远程仓库,用id来进行关联,详情见标题2._remote…),否则就会报错;

错误信息

Could not resolve dependencies for project com-hallo-mybatis:generator:jar:1.0-SNAPSHOT:
The following artifacts could not be resolved: com.tencent.tsf:spring-cloud-tsf-dependencies:pom:1.1.1-
RELEASE, com.tencent.tsf:spring-cloud-tsf-sleuth:jar:1.1.1-RELEASE, com.tencent.tsf:spring-cloud-tsf-
auth:jar:1.1.1-RELEASE: Failure to find com.tencent.tsf:spring-cloud-tsf-dependencies:pom:1.1.1-RELEASE in
<span style="color:#ab4642">http://***:8081/repository/public/ was cached in the local repository, resolution
will not be reattempted until the update interval of public has elapsed or updates are forced</span>

.jar.sha1文件

是jar的校验文件

.pom

是pom管理描述文件

.pom.sha1

是pom的校验文件

.lastUpdated

当远程仓库没有该jar时,就会生成该文件,说明该jar下载失败。如果本地仓库有该jar,则删除该文件和_remote.repositories文件,否则删除该依赖之后,用命令强制下载该jar。

参考

https://zhuanlan.zhihu.com/p/59058778

https://www.cnblogs.com/mySummer/p/9453777.html

https://blog.csdn.net/lovepeacee/article/details/103094247

最新文章

  1. JSP代码加固
  2. mediastream2使用指南(转载)
  3. Qt组件中的双缓冲无闪烁绘图
  4. 404 Not Found The requested URL * was not found on this server
  5. swipe方法
  6. windows7 iis安装与配置
  7. Delphi中上指定进程(进程名)
  8. HDU1197 Specialized Four-Digit Numbers
  9. Python 运算符,你了解多少?
  10. Log4j2中RollingFile的文件滚动更新机制
  11. JSON 序列化的时候忽略无效的属性值
  12. 如何将Drawable转为Bitmap?
  13. Div Height设置高度后不能自适应
  14. Sql Server索引重建
  15. python dict 构造函数性能比较
  16. leetcode 之突然不做了
  17. DB开发之oracle
  18. c# 通过文件夹共享复制文件到服务器
  19. 我读《大数据时代的IT架构设计》
  20. l2-loss,l2正则化,l2范数,欧式距离

热门文章

  1. CS5218替代AG6310方案设计|替代AG6310方案|DP转HDMI 4K30Hz转换方案
  2. 在页面上绘制一张表格,使用 DOM 节点的动态添加和删除向表格中插入数据,点击表格每行后的“删除”超链接
  3. 使用 history 对象和 location 对象中的属性和方法制作一个简易的网页浏览工具
  4. 为什么操作dom会消耗性能
  5. Java高级程序设计笔记 • 【第4章 网络编程】
  6. Java 获取客户端浏览器中的语言设置
  7. 使用.NET 6开发TodoList应用(21)——实现API版本控制
  8. Echart可视化学习(六)
  9. SYCOJ223图书管理员
  10. HDU-2032.杨辉三角(C语言描述)