java

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 27 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 GetMavenDepTreeVersion added in v1.21.9

func GetMavenDepTreeVersion() string

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
	InsecureTls                   bool
	IsMavenDepTreeInstalled       bool
	IsCurationCmd                 bool
	MvnIncludePluginDeps          bool
	CurationCacheFolder           string
	UseIncludedBuilds             bool
	GradleExcludeTestDependencies bool
}

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)

CreateTempDirWithSettingsXmlIfNeeded creates a temp dir and, when a deps repo is configured, writes a settings.xml into it.

func (*MavenDepTreeManager) GetSettingsXmlPath

func (mdt *MavenDepTreeManager) GetSettingsXmlPath() string

func (*MavenDepTreeManager) RunMavenDepTree

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

RunMavenDepTree runs maven-dep-tree and returns the output path along with a cleanup function.

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