buffrs icon indicating copy to clipboard operation
buffrs copied to clipboard

Maven registry backend

Open markelliot opened this issue 2 months ago • 1 comments

Would you be open to a contribution that adds Maven backend support?

I think the base work here is:

  • add a new Maven implementation that's similar to the Artifactory one but uses maven-metadata.xml instead of Artifactory queries
  • likely pulling out a Registry trait for both to implement
  • plumbing to allow specifying a registry is Artifactory or Maven, maintaining Artifactory as a default

There's some design decision questions here, in particular how the manifest should store the registry type. A couple of options on that front:

  • take a crates style approach and embed "maven+" or "artifactory+" in front of a registry URI to encode type (with absence defaulting to artifactory)
  • use a nested type that encodes type/URL separately
  • whether this deserves a new rev of the manifest or if it should be handled transparently

markelliot avatar Oct 24 '25 13:10 markelliot

Hey mark, thank you for the initiative, i largely agree with your proposed system design:)

Beware we are automatically releasing a new manifest edition for each minor release at this point in time (pre 1.0) but maintain strong backwards compatibility guarantees for all the canary versions. I think you can largely extend the RegistryUri type to take in the prefix solution you mentioned which should work out of the box with old manifest editions.

mara-schulke avatar Oct 25 '25 11:10 mara-schulke