pom

package
v0.0.0-...-035f8e2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadingPomFile

func LoadingPomFile(path string) ([]string, error)

LoadingPomFile 获取pom.xml文件

Types

type Depndency

type Depndency struct {
	GroupId    string
	ArtifactId string
	Version    string
	Scope      string
}

type POM

type POM struct {
	XMLName     xml.Name `xml:"project"`
	GroupID     string   `xml:"groupId"`
	ArtifactID  string   `xml:"artifactId"`
	Version     string   `xml:"version"`
	Name        string   `xml:"name"`
	Description string   `xml:"description"`
	Parent      struct {
		GroupID    string `xml:"groupId"`
		ArtifactID string `xml:"artifactId"`
		Version    string `xml:"version"`
	} `xml:"parent"`
	Modules []string `xml:"modules>module"`
}

func ParsePOM

func ParsePOM(filePath string) (*POM, error)

ParsePOM parses a pom.xml file and returns a POM struct

func ParsePOMContent

func ParsePOMContent(content []byte, filePath string) (*POM, error)

ParsePOM parses a pom.xml file and returns a POM struct

Jump to

Keyboard shortcuts

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