maven

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 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, filter string) []string

func (*ArchetypeModel) CreateSurvey

func (m *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, 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