pom

package
v0.71.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 34 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDefaultRepo added in v0.68.0

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

func WithOffline

func WithOffline(offline bool) option

func WithSettingsRepos added in v0.68.0

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

Types

type Metadata added in v0.53.0

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

type Mirror added in v0.71.0

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

type Parser added in v0.51.2

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

func NewParser

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

func (*Parser) Parse added in v0.51.2

type Profile added in v0.68.0

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

type Proxy added in v0.69.4

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 added in v0.71.0

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 added in v0.53.0

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

type Versioning added in v0.53.0

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