mvn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PomProjectByParentPath

func PomProjectByParentPath(archivePath string) (map[string]PomProject, error)

func PomPropertiesByParentPath

func PomPropertiesByParentPath(archivePath string) (map[string]PomProperties, error)

Types

type PomDependency

type PomDependency struct {
	GroupID    string
	ArtifactID string
	Version    string
}

type PomParent

type PomParent struct {
	GroupID    string `json:"groupId"`
	ArtifactID string `json:"artifactId"`
	Version    string `json:"version"`
}

PomParent contains the fields within the <parent> tag in a pom.xml file

type PomProject

type PomProject struct {
	Path         string          `json:"path"`
	Parent       *PomParent      `json:"parent,omitempty"`
	GroupID      string          `json:"groupId"`
	ArtifactID   string          `json:"artifactId"`
	Version      string          `json:"version"`
	Name         string          `json:"name"`
	Description  string          `json:"description,omitempty"`
	URL          string          `json:"url,omitempty"`
	Licenses     []string        `json:"licenses,omitempty"`
	Dependencies []PomDependency `json:"dependencies,omitempty"`
}

PomProject represents fields of interest extracted from a Java archive's pom.xml file. See https://maven.apache.org/ref/3.6.3/maven-model/maven.html for more details.

type PomProperties

type PomProperties struct {
	Path       string            `mapstructure:"path" json:"path"`
	Name       string            `mapstructure:"name" json:"name"`
	GroupID    string            `mapstructure:"groupId" json:"groupId" `
	ArtifactID string            `mapstructure:"artifactId" json:"artifactId" `
	Version    string            `mapstructure:"version" json:"version"`
	Extra      map[string]string `mapstructure:",remain" json:"extraFields,omitempty"`
}

PomProperties represents the fields of interest extracted from a Java archive's pom.properties file.

Jump to

Keyboard shortcuts

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