class MavenRepositoryClient implements MavenRepository {

    static URI withArtifactPath(URI baseUrl, ArtifactId id) {
        List<String> parts = new ArrayList<>(List.of(id.groupId().split("\\.")));
        parts.add(id.artifactId());
        parts.add("maven-metadata.xml");
        return baseUrl.resolve(String.join("/", parts));
    }

    public  MavenRepositoryClient(MavenRepositoryConfig config);

}