shields icon indicating copy to clipboard operation
shields copied to clipboard

Maven central snapshot repository

Open bruderj15 opened this issue 1 year ago • 2 comments

📋 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.

Release badge looks like: Maven Central

I'd expect the snapshot badge to look like below, but am surely open to different approaches: Static Badge

🔗 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.

bruderj15 avatar Feb 17 '25 16:02 bruderj15

Yeah, the old hosts like https://oss.sonatype.org/ has been deprecated.

https://central.sonatype.org/news/20250326_ossrh_sunset/

Goooler avatar May 08 '25 04:05 Goooler

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.

pjfanning avatar May 30 '25 20:05 pjfanning

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 avatar Jul 16 '25 09:07 BoD

@BoD nice hint thanks! I just tested it and indeed, it seems to work. Example: Maven metadata URL

StefMa avatar Jul 16 '25 09:07 StefMa

@BoD nice hint thanks! I just tested it and indeed, it seems to work. Example: Maven metadata URL

As maven-metadata seems to solve your issue, do you still think a snapshot badge is required here?

jNullj avatar Jul 16 '25 21:07 jNullj

As maven-metadata seems to solve your issue, do you still think a snapshot badge is required here?

Certainly solves my initial use-case. Thank you!

bruderj15 avatar Jul 18 '25 10:07 bruderj15