maven

package
v0.0.107 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func InstallMavenIfRequired

func InstallMavenIfRequired(runner cmdrunner.CommandRunner) error

InstallMavenIfRequired installs maven if not available

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 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, i input.Interface) 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