maven

package
v1.3.378 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MavenArchetypePluginVersion = "3.0.1"
)
View Source
const (
	// MavenVersion the release verison of Apache Maven
	MavenVersion = "3.5.4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchetypeFilter

type ArchetypeFilter struct {
	GroupIds         []string
	GroupIdFilter    string
	ArtifactIdFilter string
	Version          string
}

type ArchetypeForm

type ArchetypeForm struct {
	ArchetypeGroupId    string
	ArchetypeArtifactId string
	ArchetypeVersion    string

	GroupId    string
	ArtifactId string
	Package    string
	Version    string
}

type ArchetypeModel

type ArchetypeModel struct {
	Groups map[string]*GroupArchectypes
}

func LoadArchetypes

func LoadArchetypes(name string, archetypeCatalogURL string, cacheDir string) (*ArchetypeModel, error)

func NewArchetypeModel

func NewArchetypeModel() ArchetypeModel

func (*ArchetypeModel) AddArtifact

func (m *ArchetypeModel) AddArtifact(a *ArtifactData) *ArtifactVersions

func (*ArchetypeModel) ArtifactIDs

func (m *ArchetypeModel) ArtifactIDs(groupId string, filter string) []string

func (*ArchetypeModel) CreateSurvey

func (model *ArchetypeModel) CreateSurvey(data *ArchetypeFilter, pickVersion bool, form *ArchetypeForm, in terminal.FileReader, out terminal.FileWriter, errOut io.Writer) error

func (*ArchetypeModel) GroupIDs

func (m *ArchetypeModel) GroupIDs(filter string) []string

func (*ArchetypeModel) Versions

func (m *ArchetypeModel) Versions(groupId string, artifactId, filter string) []string

type ArtifactData

type ArtifactData struct {
	GroupId     string
	ArtifactId  string
	Version     string
	Description string
}

type ArtifactVersions

type ArtifactVersions struct {
	GroupId     string
	ArtifactId  string
	Description string
	Versions    []string
}

type GroupArchectypes

type GroupArchectypes struct {
	GroupId   string
	Artifacts map[string]*ArtifactVersions
}

Jump to

Keyboard shortcuts

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