How do I find out the last-modified time of a Maven artifact?

限于喜欢 提交于 2019-12-08 09:50:24

问题


Each artifact uploaded to Maven Central has a last modified time associated with it. You can see an example of this by drilling into an artifact's details on search.maven.org.

How do I retrieve an artifact's last modified time using Aether?

I am retrieving this information purely for human consumption (i.e. "How long ago did this project make a release? Is it being actively maintained?").


回答1:


One way to retrieve this information (though not officially supported) is to construct the Artifact's URI and issue an HTTP HEAD to retrieve the Last-Modified header.

I'm not aware of any official API to do this (suggestions welcome!)



来源:https://stackoverflow.com/questions/19068600/how-do-i-find-out-the-last-modified-time-of-a-maven-artifact

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!