[
https://issues.apache.org/jira/browse/MRESOLVER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750671#comment-17750671
]
Tamas Cservenak commented on MRESOLVER-146:
-------------------------------------------
Maven itself does not track this (for example metadata has "last updated", but
has no "history of updates" with timestamps).
The file creation date (last-modified HTTP header) would be your best bet, but
be aware that it "just happens" that it is published (by Maven Central for
example), but different remote repositories (and their implementations, think
MRM) may handle it differently, etc.
Could do something like POM -> SCM -> tag date instead? (assuming all these
info is correct)
> method to get artifact publication date
> ---------------------------------------
>
> Key: MRESOLVER-146
> URL: https://issues.apache.org/jira/browse/MRESOLVER-146
> Project: Maven Resolver
> Issue Type: New Feature
> Components: Resolver
> Reporter: Th Stock
> Priority: Major
>
> I'm looking for a method to get the date of artifact publication in
> org.eclipse.aether.RepositorySystem
> e.g.
> "org.apache.maven.resolver" % "maven-resolver-api" % "1.6.1" => 2020-10-02
> 18:05
> https://repo1.maven.org/maven2/org/apache/maven/resolver/maven-resolver-api/1.6.1/
--
This message was sent by Atlassian Jira
(v8.20.10#820010)