maven

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Maven

type Maven struct {
	URL        string
	Repository string
	GroupID    string
	ArtifactID string
	Version    string
}

Maven hold maven repository information

func (*Maven) Condition

func (m *Maven) Condition(source string) (bool, error)

Condition tests if a specific version exist on the maven repository

func (*Maven) ConditionFromSCM

func (m *Maven) ConditionFromSCM(source string, scm scm.Scm) (bool, error)

ConditionFromSCM returns an error because it's not supported

func (*Maven) Source

func (m *Maven) Source(workingDir string) (string, error)

Source return the latest version

type Metadata

type Metadata struct {
	Metadata   xml.Name `xml:"metadata"`
	GroupID    string   `xml:"groupId"`
	ArtifactID string   `xml:"artifactId"`
	Versioning Version  `xml:"versioning"`
}

Metadata hold maven repository metadata

type Version

type Version struct {
	Versioning xml.Name `xml:"versioning"`
	Latest     string   `xml:"latest"`
	Release    string   `xml:"release"`
	Versions   Versions `xml:"versions"`
}

Version hold version information

type Versions

type Versions struct {
	ID      xml.Name `xml:"versions"`
	Version []string `xml:"version"`
}

Versions contains the list of available version

Jump to

Keyboard shortcuts

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