Documentation ¶
Index ¶
Constants ¶
View Source
const ( MvnTabSize = 3 MvnMain = "+- " MvnSub = "| " MvnLast = "\\- " Suffix = "deps.txt" )
Variables ¶
View Source
var MavenErrorProject []string = make([]string, 0)
MavenErrorProject maven build error project
Functions ¶
func CalculateDependencyDepth ¶
CalculateDependencyDepth 计算依赖深度
func ChangeDirectory ¶
ChangeDirectory changes the current working directory to the specified path
Types ¶
type DependencyTxt ¶
DependencyTxt maven dependency tree
func ParseMavenDependencyTxt ¶
func ParseMavenDependencyTxt(fileName string) (*DependencyTxt, error)
ParseMavenDependencyTxt 解析mvn dependency:tree 命令生成的txt文件
type Maven ¶
type Maven struct { Path string // maven pom.xml path Project string // project name FileName string // mvn dependency:tree 生成的txt文件名 Ctx context.Context }
func (*Maven) ExectueCmd ¶
ExectueCmd 执行mvn dependency:tree 命令
func (*Maven) LoadingMvnTxtFile ¶
loadingMvnTxtFile 获取mvn dependency:tree 命令生成的txt文件
Click to show internal directories.
Click to hide internal directories.