maven

package
v0.0.0-...-f1100e8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Character responsible for separating parts of Maven coordinates
	CoordinatesSeparator = ":"
	// Standard packaging used by the Maven if none specified in coordinates
	DefaultPackaging = "jar"
	// Character responsible for separating the artefact name and the version
	FilenameSeparator = "-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinates

type Coordinates struct {
	GroupId      string
	ArtifactId   string
	Version      string
	VersionLabel string
	Packaging    string
	Classifier   string
}

func NewCoordinates

func NewCoordinates(coordinates string) (*Coordinates, error)

func (*Coordinates) FileBaseName

func (c *Coordinates) FileBaseName() string

func (*Coordinates) FileName

func (c *Coordinates) FileName() string

func (*Coordinates) FullVersion

func (c *Coordinates) FullVersion() string

func (*Coordinates) IsValid

func (c *Coordinates) IsValid() error

func (*Coordinates) MarshalJSON

func (c *Coordinates) MarshalJSON() ([]byte, error)

func (*Coordinates) Path

func (c *Coordinates) Path(sep rune) string

func (*Coordinates) String

func (c *Coordinates) String() string

func (*Coordinates) UnmarshalJSON

func (c *Coordinates) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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