maven

package
v1.2.84 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MavenArchetypePluginVersion = "3.0.1"
)

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) 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