parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	GroupID    string `xml:"groupId"`
	ArtifactID string `xml:"artifactId"`
	Version    string `xml:"version"`
	Scope      string `xml:"scope"`
}

Dependency represents a Maven dependency in POM

type MavenParser

type MavenParser struct {
	// contains filtered or unexported fields
}

MavenParser handles parsing of Maven projects

func NewMavenParser

func NewMavenParser(projectPath string) *MavenParser

NewMavenParser creates a new Maven parser

func (*MavenParser) ParseDependencies

func (mp *MavenParser) ParseDependencies() (*models.DependencyTree, error)

ParseDependencies extracts the dependency tree from a Maven project

type POM

type POM struct {
	XMLName      xml.Name     `xml:"project"`
	GroupID      string       `xml:"groupId"`
	ArtifactID   string       `xml:"artifactId"`
	Version      string       `xml:"version"`
	Dependencies []Dependency `xml:"dependencies>dependency"`
}

POM represents a simplified Maven POM structure

Jump to

Keyboard shortcuts

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