cstamas commented on issue #203:
URL: 
https://github.com/apache/maven-artifact-plugin/issues/203#issuecomment-4099769400

   Maven lacks information to do this. Take a look at any (V-level) metadata, 
used by Maven to discover versions, used when resolving ranges:
   
https://repo.maven.apache.org/maven2/eu/maveniverse/maven/toolbox/shared/maven-metadata.xml
   
   Observe:
   * it contains only the versions, nothing more
   * there is one timestamp, the "last modified"
   * this basically makes Maven (or Maven Metadata using code unaware when 
other, non-last versions were published)
   
   In certain _specific_ cases, use of emitted HTML page _may help_. But to 
utilize this, you must know what kind of index page HTML you deal with. Or 
using CSC (Sonatype Search).
   
   For example, the [Maven Indexer 
RRB](https://github.com/apache/maven-indexer/tree/master/search-backend-remoterepository)
 supports 2 types:
   * "maven central"-like index pages 
   * and "sonatype nx2"-like index pages
   
   as can be seen here: 
https://github.com/apache/maven-indexer/tree/master/search-backend-remoterepository/src/main/java/org/apache/maven/search/backend/remoterepository/extractor
   
   With Maven Indexer CSC backend you already get timestamps, but they rely on 
Sonatype service....
   https://gist.github.com/cstamas/323acd1595129a7d93c1f9f563c4d4a5
   
   ---
   
   TBH, I _assumed_ RRB gets modification date as well, but is not. So we 
should probably improve it...
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to