corgibytes / dependency-history-maven

Library for retrieving release history for a package that's published in a Maven repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use directory listing when `maven-metadata.xml` is not available

mscottford opened this issue · comments

The package pkg:maven/net.jcip/jcip-annotations is being reported as not found, because there is no maven-metadata.xml file present on Maven Central for the package.

When the maven-metadata.xml file cannot be found, then the directory listing should be examined as a fallback.

Starting in the directory built with the group id and module name, look for any files in the directory tree that match the following pattern:

<group-id>/<module-name>/<version-number>/<module-name>-<version-number>.(jar | pom) 

Those version numbers should be included in the list of detected versions.