[
https://issues.apache.org/jira/browse/MRESOLVER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17228277#comment-17228277
]
Th Stock commented on MRESOLVER-146:
------------------------------------
I use maven-resolver to find newer versions of used artifacts like
maven-versions-plugin
([https://www.mojohaus.org/versions-maven-plugin/examples/display-dependency-updates.html])
org.eclipse.aether.RepositorySystem#resolveVersionRange
in some cases it is not enough to use the version number only if i want to
order versions like this e.g (3.0-8a09def, 3.0-f471c52, 3.0.0-M2)
You could argue that it is up to the projects to choose comparable versions,
but there is also a fallback value if version ordering is difficult:
publication date.
Another benefit could be a metric for outdated artifacts that can be found for
languages like dotnet, php, js, python, ruby
see: [https://ericbouwers.github.io/papers/icse15.pdf] / [https://libyear.com/]
It is required that the information must be transport-argnostic? What about an
optional value if date can be found - use it.
> method to get artifact publication date
> ---------------------------------------
>
> Key: MRESOLVER-146
> URL: https://issues.apache.org/jira/browse/MRESOLVER-146
> Project: Maven Resolver
> Issue Type: Task
> 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.3.4#803005)