You might be interested in this code where all the version choices are available in a collection per groupId/artifactId. The sample code uses a custom comparator to select the best version, you could tweak the logic to do whatever you like
You might be interested in this code where all the version choices are available in a collection per groupId/artifactId. The sample code uses a custom comparator to select the best version, you could tweak the logic to do whatever you like