maven

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package maven provides a registry client for Maven Central (Java).

Index

Constants

View Source
const (
	DefaultURL = "https://repo1.maven.org/maven2"
	SearchURL  = "https://search.maven.org"
)

Variables

This section is empty.

Functions

func ParseCoordinates

func ParseCoordinates(coord string) (groupID, artifactID, version string)

ParseCoordinates parses a Maven coordinate string. Accepts both "groupId:artifactId" (traditional) and "groupId/artifactId" (PURL FullName) formats. Optionally includes version: "groupId:artifactId:version" or "groupId/artifactId/version"

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(baseURL string, client *core.Client) *Registry

func (*Registry) Ecosystem

func (r *Registry) Ecosystem() string

func (*Registry) FetchDependencies

func (r *Registry) FetchDependencies(ctx context.Context, name, version string) ([]core.Dependency, error)

func (*Registry) FetchMaintainers

func (r *Registry) FetchMaintainers(ctx context.Context, name string) ([]core.Maintainer, error)

func (*Registry) FetchPackage

func (r *Registry) FetchPackage(ctx context.Context, name string) (*core.Package, error)

func (*Registry) FetchVersions

func (r *Registry) FetchVersions(ctx context.Context, name string) ([]core.Version, error)

func (*Registry) URLs

func (r *Registry) URLs() core.URLBuilder

type URLs

type URLs struct {
	// contains filtered or unexported fields
}

func (*URLs) Documentation

func (u *URLs) Documentation(name, version string) string

func (*URLs) Download

func (u *URLs) Download(name, version string) string

func (*URLs) PURL

func (u *URLs) PURL(name, version string) string

func (*URLs) Registry

func (u *URLs) Registry(name, version string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL