pom

package
v0.0.0-...-a89fe16 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfigFileMirrors

func WithConfigFileMirrors(mirrors map[string][]string) option

WithConfigFileMirrors injects Maven mirrors from Dep-Parser's config file: each source repository URL maps to an ordered list of fallback mirror URLs.

func WithDefaultRepo

func WithDefaultRepo(repoURL string, releaseEnabled, snapshotEnabled bool) option

func WithOffline

func WithOffline(offline bool) option

func WithSettingsRepos

func WithSettingsRepos(repos []SettingsRepo, releaseEnabled, snapshotEnabled bool) option

Types

type Metadata

type Metadata struct {
	GroupId    string     `xml:"groupId"`
	ArtifactId string     `xml:"artifactId"`
	Versioning Versioning `xml:"versioning"`
	Version    string     `xml:"version"`
}

type Mirror

type Mirror struct {
	ID       string `xml:"id"`
	Name     string `xml:"name"`
	URL      string `xml:"url"`
	MirrorOf string `xml:"mirrorOf"`
}

type Parser

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

func NewParser

func NewParser(filePath string, opts ...option) *Parser

func (*Parser) Parse

type Profile

type Profile struct {
	ID              string          `xml:"id"`
	Repositories    []pomRepository `xml:"repositories>repository"`
	ActiveByDefault bool            `xml:"activation>activeByDefault"`
}

type Proxy

type Proxy struct {
	ID            string `xml:"id"`
	Active        string `xml:"active"`
	Protocol      string `xml:"protocol"`
	Host          string `xml:"host"`
	Port          string `xml:"port"`
	Username      string `xml:"username"`
	Password      string `xml:"password"`
	NonProxyHosts string `xml:"nonProxyHosts"`
}

type Server

type Server struct {
	ID       string `xml:"id"`
	Username string `xml:"username"`
	Password string `xml:"password"`
}

type SettingsRepo

type SettingsRepo struct {
	ID  string
	URL string
}

SettingsRepo is a repository injected via WithSettingsRepos. ID is needed so that <mirror> rules like <mirrorOf>my-repo</mirrorOf> can match by exact repository id; wildcard and external:* match without it.

type SnapshotVersion

type SnapshotVersion struct {
	Extension string `xml:"extension"`
	Value     string `xml:"value"`
}

type Versioning

type Versioning struct {
	SnapshotVersions []SnapshotVersion `xml:"snapshotVersions>snapshotVersion"`
}

Jump to

Keyboard shortcuts

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