maven

package
v0.0.0-...-ed3608b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct{}

func (Analyzer) Analyze

func (Analyzer) GetName

func (a Analyzer) GetName() string

type PomXML

type PomXML struct {
	XMLName         xml.Name `xml:"project"`
	ArtifactID      string   `xml:"artifactId"`
	GroupID         string   `xml:"groupId"`
	Version         string   `xml:"version"`
	Packaging       string   `xml:"packaging"`
	Name            string   `xml:"name"`
	Description     string   `xml:"description"`
	URL             string   `xml:"url"`
	PropJavaVersion string   `xml:"properties>java.version"`
	Build           struct {
		Plugins []struct {
			GroupID    string `xml:"groupId"`
			ArtifactID string `xml:"artifactId"`
			Version    string `xml:"version"`
			Executions []struct {
				Goals []string `xml:"goals>goal"`
			} `xml:"executions>execution"`
		} `xml:"plugins>plugin"`
	}
	Repositories []struct {
		ID        string `xml:"id"`
		URL       string `xml:"url"`
		Layout    string `xml:"layout"`
		Snapshots struct {
			Enabled bool `xml:"enabled"`
		} `xml:"snapshots"`
		Releases struct {
			Enabled bool `xml:"enabled"`
		} `xml:"releases"`
	} `xml:"repositories>repository"`
	Dependencies []struct {
		GroupID    string `xml:"groupId"`
		ArtifactID string `xml:"artifactId"`
		Version    string `xml:"version"`
	} `xml:"dependencies>dependency"`
}

PomXML represents the structure of a Maven pom.xml file

func ParsePackageJSON

func ParsePackageJSON(file string) (PomXML, error)

ParsePackageJSON will parse the package.json to evaluate its content

Jump to

Keyboard shortcuts

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