java

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	GavPackageTypeIdentifier = "gav://"
)

Variables

This section is empty.

Functions

func BuildDependencyTree

func BuildDependencyTree(depTreeParams DepTreeParams, tech techutils.Technology) ([]*xrayUtils.GraphNode, map[string]*xray.DepTreeNode, error)

func GetMavenPluginInstallationGoals

func GetMavenPluginInstallationGoals(pluginPath string) []string

func GetModuleTreeAndDependencies

func GetModuleTreeAndDependencies(module *moduleDepTree) (*xrayUtils.GraphNode, map[string]*xray.DepTreeNode)

Returns a dependency tree and a flat list of the module's dependencies for the given module

Types

type DepTreeManager

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

func NewDepTreeManager

func NewDepTreeManager(params *DepTreeParams) DepTreeManager

func (*DepTreeManager) GetDepsRepo

func (dtm *DepTreeManager) GetDepsRepo() string

type DepTreeParams

type DepTreeParams struct {
	UseWrapper              bool
	Server                  *config.ServerDetails
	DepsRepo                string
	IsMavenDepTreeInstalled bool
	IsCurationCmd           bool
	CurationCacheFolder     string
}

type MavenDepTreeCmd

type MavenDepTreeCmd string
const (
	Projects MavenDepTreeCmd = "projects"
	Tree     MavenDepTreeCmd = "tree"
)

type MavenDepTreeManager

type MavenDepTreeManager struct {
	DepTreeManager
	// contains filtered or unexported fields
}

func NewMavenDepTreeManager

func NewMavenDepTreeManager(params *DepTreeParams, cmdName MavenDepTreeCmd) *MavenDepTreeManager

func (*MavenDepTreeManager) CreateTempDirWithSettingsXmlIfNeeded

func (mdt *MavenDepTreeManager) CreateTempDirWithSettingsXmlIfNeeded() (tempDirPath string, clearMavenDepTreeRun func() error, err error)

Creates a temporary directory. If Artifactory resolution repo is provided, a settings.xml file with the provided server and repository will be created inside the temprary directory.

func (*MavenDepTreeManager) GetSettingsXmlPath

func (mdt *MavenDepTreeManager) GetSettingsXmlPath() string

func (*MavenDepTreeManager) RunMavenDepTree

func (mdt *MavenDepTreeManager) RunMavenDepTree() (depTreeOutput string, clearMavenDepTreeRun func() error, err error)

Runs maven-dep-tree according to cmdName. Returns the plugin output along with a function pointer to revert the plugin side effects. If a non-nil clearMavenDepTreeRun pointer is returnes it means we had no error during the entire function execution

func (*MavenDepTreeManager) RunMvnCmd

func (mdt *MavenDepTreeManager) RunMvnCmd(goals []string) (cmdOutput []byte, err error)

func (*MavenDepTreeManager) SetSettingsXmlPath

func (mdt *MavenDepTreeManager) SetSettingsXmlPath(settingsXmlPath string)

Jump to

Keyboard shortcuts

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