maven

package
v2.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const ArtifactoryMirrorID = "artifactory-mirror"

ArtifactoryMirrorID is the ID used for the Artifactory mirror.

Variables

This section is empty.

Functions

This section is empty.

Types

type SettingsXmlManager

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

SettingsXmlManager manages the maven settings file (`settings.xml`).

func NewSettingsXmlManager

func NewSettingsXmlManager() (*SettingsXmlManager, error)

NewSettingsXmlManager creates a new SettingsXmlManager instance. It automatically loads the existing settings from the `settings.xml` file if it exists.

func (*SettingsXmlManager) ConfigureArtifactoryMirror

func (sxm *SettingsXmlManager) ConfigureArtifactoryMirror(artifactoryUrl, repoName, username, password string) error

ConfigureArtifactoryMirror updates or adds the Artifactory mirror and its credentials in the settings.

Jump to

Keyboard shortcuts

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