maven

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modules

func Modules(dir string) ([]string, error)

Types

type Dependency

type Dependency struct {
	Name    string
	Version string
	Failed  bool
}

func ParseDependencyTree

func ParseDependencyTree(stdin string) ([]Dependency, map[Dependency][]Dependency, error)

func ReadDependencyTree

func ReadDependencyTree(lines []string, parser LineParser) ([]Dependency, map[Dependency][]Dependency, error)

type LineParser

type LineParser func(line string) (level int, node Dependency, err error)

level is 1-indexed

type Manifest

type Manifest struct {
	Project     xml.Name `xml:"project"`
	Parent      Parent   `xml:"parent"`
	Modules     []string `xml:"modules>module"`
	ArtifactID  string   `xml:"artifactId"`
	GroupID     string   `xml:"groupId"`
	Version     string   `xml:"version"`
	Description string   `xml:"description"`
	Name        string   `xml:"name"`
	URL         string   `xml:"url"`
}

type Maven

type Maven struct {
	Cmd string
}

func (*Maven) Clean

func (m *Maven) Clean(dir string) error

func (*Maven) Compile

func (m *Maven) Compile(dir string) error

func (*Maven) DependencyList

func (m *Maven) DependencyList(dir string) (string, error)

func (*Maven) DependencyTree

func (m *Maven) DependencyTree(dir, project string) ([]Dependency, map[Dependency][]Dependency, error)

type Parent

type Parent struct {
	ArtifactID string `xml:"artifactId"`
	GroupID    string `xml:"groupId"`
	Version    string `xml:"version"`
}

Jump to

Keyboard shortcuts

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