librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.1k stars 206 forks source link

Handle weird case where latest in maven-metadata doesn't exist #3407

Closed katzj closed 5 days ago

katzj commented 5 days ago

There are some cases (for example, commons-discovery:commons-discovery) where the version listed as latest in maven-metadata.xml isn't actually present on central. This lets us fallback to our scraping and using that.

Also improves the scraping of the latest version to prefer non date formatted versions as that's an older maven practice

Thanks taking the time to contribute. This template should help guide you through the process of creating a pull request for review. Please erase any part of this template that is not relevant to your pull request: