maven的.lastUpdated文件的作用

maven管理jar包的机制

1.maven的.lastUpdated文件

《maven的.lastUpdated文件的作用》 maven文件夹的结构.png

1.1 看下.lastUpdated文件内部:

《maven的.lastUpdated文件的作用》 image.png

2. 看一下_remote.repositories文件的结构

《maven的.lastUpdated文件的作用》 remoreRepositories文件格式.png

看一下详情

#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Thu Jan 10 17:42:11 CST 2019
tasks-proxy-3.6.0-SNAPSHOT.pom>=
tasks-proxy-3.6.0-SNAPSHOT-sources.jar>=
tasks-proxy-3.6.0-SNAPSHOT.jar>=

问: >= 代表什么意思???

3.Maven can’t find pom/jar from local repository 和 jar.lastUpdated文件之间是什么关系?

删除.lastUpdated文件之后,maven仓库中的jar包就能被maven找到了:

《maven的.lastUpdated文件的作用》
《maven的.lastUpdated文件的作用》 image.png

    原文作者:Tesfaye
    原文地址: https://www.jianshu.com/p/feae53fcab04
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞