Maven central snapshot repository
📋 Description
Hello, I'd love to see a badge for the Maven central snapshot repository similar to their release repository for my GitHubs readme. The snapshot repository has been given birth to recently, see their docs.
I'd expect the snapshot badge to look like below, but am surely open to different approaches:
🔗 Data
There probably is a public API and I have not yet found it or there will be one (hopefully very) soon. The release repository has one: https://central.sonatype.org/search/rest-api-guide/
🎤 Motivation
Highlighting the availabilty of snapshots.
Yeah, the old hosts like https://oss.sonatype.org/ has been deprecated.
https://central.sonatype.org/news/20250326_ossrh_sunset/
For central.sonatype.com, you need to lookup:
https://central.sonatype.com/service/rest/repository/browse/maven-snapshots
Example: https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/tools/jackson/core/jackson-databind/
This UTL is different from what you use to download the jars in a build tool - which is: https://central.sonatype.com/repository/maven-snapshots/
This latter URL is not UI browsable.
Can't you use https://shields.io/badges/maven-metadata-url for this?
(However, I can't seem to make it work - see #11215).
@BoD nice hint thanks!
I just tested it and indeed, it seems to work.
Example:
@BoD nice hint thanks! I just tested it and indeed, it seems to work. Example:
As maven-metadata seems to solve your issue, do you still think a snapshot badge is required here?
As
maven-metadataseems to solve your issue, do you still think a snapshot badge is required here?
Certainly solves my initial use-case. Thank you!