maven

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 7 Imported by: 0

README

Maven resolution logic

The way resolution of maven lock files works is as follows:

  1. Parse pom.xml file
  2. Run mvn dependency:tree -DoutputFile=maven.debricked.lock -DoutputType=tgf --fail-at-end in order to install all dependencies

The result of the second command above is then written to maven.debricked.lock file.

Documentation

Index

Constants

View Source
const Name = "mvn"

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdFactory

type CmdFactory struct{}

func (CmdFactory) MakeDependencyTreeCmd

func (_ CmdFactory) MakeDependencyTreeCmd(workingDirectory string) (*exec.Cmd, error)

type ICmdFactory

type ICmdFactory interface {
	MakeDependencyTreeCmd(workingDirectory string) (*exec.Cmd, error)
}

type IPomService

type IPomService interface {
	ParsePomModules(path string) ([]string, error)
}

type Job

type Job struct {
	job.BaseJob
	// contains filtered or unexported fields
}

func NewJob

func NewJob(file string, cmdFactory ICmdFactory, pomService IPomService) *Job

func (*Job) Run

func (j *Job) Run()

type Pm

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

func NewPm

func NewPm() Pm

func (Pm) Manifests

func (_ Pm) Manifests() []string

func (Pm) Name

func (pm Pm) Name() string

type PomService

type PomService struct{}

func (PomService) ParsePomModules

func (p PomService) ParsePomModules(path string) ([]string, error)

type Strategy

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

func NewStrategy

func NewStrategy(files []string) Strategy

func (Strategy) Invoke

func (s Strategy) Invoke() ([]job.IJob, error)

Jump to

Keyboard shortcuts

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