maven

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMavenScope

func IsMavenScope(str string) bool

IsMavenScope 判断字符串是否为Maven依赖坐标中scope的有效取值

func Name

func Name() string

func PickArchiveFilesToUniqueTempFile

func PickArchiveFilesToUniqueTempFile(archivePath, dir string) (map[string]string, error)

func PkgType

func PkgType() model.PkgType

Types

type AndroidBinaryParser

type AndroidBinaryParser struct{}

AndroidBinaryParser is a parser for apk file.

func NewAndroidBinaryParser

func NewAndroidBinaryParser() *AndroidBinaryParser

NewAndroidBinaryParser returns a new CartFileParser

func (*AndroidBinaryParser) Matcher

func (*AndroidBinaryParser) Parse

func (p *AndroidBinaryParser) Parse(path string) ([]model.Package, error)

type ArchiveParser

type ArchiveParser struct {
	Embedded bool
}

ArchiveParser is a parser for maven archive files

func NewArchiveParser

func NewArchiveParser() *ArchiveParser

NewArchiveParser returns a new ArchiveParser

func (*ArchiveParser) Matcher

func (m *ArchiveParser) Matcher() collector.FileMatcher

func (*ArchiveParser) Parse

func (m *ArchiveParser) Parse(path string) ([]model.Package, error)

type Collector

type Collector struct {
	collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

func (*Collector) Collect

func (c *Collector) Collect() (pkgs []model.Package, err error)

type DependencyTreeParser

type DependencyTreeParser struct{}

DependencyTreeParser is a parser for output of executing 'mvn dependency:tree' command. see: https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html

func NewDependencyTreeParser

func NewDependencyTreeParser() *DependencyTreeParser

NewDependencyTreeParser returns a new DependencyTreeParser

func (*DependencyTreeParser) Matcher

func (*DependencyTreeParser) Parse

func (m *DependencyTreeParser) Parse(filePath string) ([]model.Package, error)

func (*DependencyTreeParser) Type

type GradleDependencyTreeParser

type GradleDependencyTreeParser struct{}

GradleDependencyTreeParser is a parser for output of executing 'gradlew dependencies' command. see: https://docs.gradle.org/current/userguide/command_line_interface.html#listing_project_dependencies

func NewGradleDependencyTreeParser

func NewGradleDependencyTreeParser() *GradleDependencyTreeParser

NewGradleDependencyTreeParser returns a new GradleDependencyTreeParser

func (*GradleDependencyTreeParser) Matcher

func (*GradleDependencyTreeParser) Parse

func (m *GradleDependencyTreeParser) Parse(filePath string) ([]model.Package, error)

func (*GradleDependencyTreeParser) Type

type GradleFileParser

type GradleFileParser struct{}

GradleFileParser is a parser for build.gradle see: https://docs.gradle.org/current/userguide/working_with_files.html

func NewJavaGradleFileParser

func NewJavaGradleFileParser() *GradleFileParser

NewJavaGradleFileParser returns a new GradleFileParser

func (*GradleFileParser) Matcher

func (m *GradleFileParser) Matcher() collector.FileMatcher

func (*GradleFileParser) Parse

func (m *GradleFileParser) Parse(filePath string) ([]model.Package, error)

func (*GradleFileParser) Type

func (m *GradleFileParser) Type() model.PkgType

type GradleLockParser

type GradleLockParser struct{}

GradleLockParser is a parser for gradle.lockfile see: https://docs.gradle.org/current/userguide/dependency_locking.html

func NewJavaGradleLockParser

func NewJavaGradleLockParser() *GradleLockParser

NewJavaGradleLockParser returns a new JavaGradleLockParser

func (*GradleLockParser) Language

func (m *GradleLockParser) Language() model.Language

func (*GradleLockParser) Parse

func (m *GradleLockParser) Parse(filePath string) ([]model.Package, []model.Relationship, error)

func (*GradleLockParser) Pattern

func (m *GradleLockParser) Pattern() string

func (*GradleLockParser) Type

func (m *GradleLockParser) Type() model.PkgType

type POMXMLParser

type POMXMLParser struct{}

POMXMLParser is a parser for maven pom.xml see: https://maven.apache.org/guides/introduction/introduction-to-the-pom.html

func NewPOMXMLParser

func NewPOMXMLParser() *POMXMLParser

NewPOMXMLParser returns a new MavenPOMParser

func (*POMXMLParser) Matcher

func (m *POMXMLParser) Matcher() collector.FileMatcher

func (*POMXMLParser) Parse

func (m *POMXMLParser) Parse(pomPath string) ([]model.Package, error)

type Plugin

type Plugin struct {
	GroupID string
	Version string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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