From 711efadfa96943c166df29869f907708a598cacb Mon Sep 17 00:00:00 2001 From: luotianqi777 Date: Mon, 8 May 2023 10:26:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A7=A3=E6=9E=90mvn?= =?UTF-8?q?=E5=81=B6=E5=B0=94=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- analyzer/java/ext.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/analyzer/java/ext.go b/analyzer/java/ext.go index 5d16001..6a44f60 100644 --- a/analyzer/java/ext.go +++ b/analyzer/java/ext.go @@ -142,6 +142,10 @@ func buildMvnDepTree(lines []string) *model.DepTree { if scope == "test" || scope == "provided" { continue } + if level-lastLevel > 1 { + // 在某个依赖解析失败的时候 子依赖会出现这种情况 + continue + } dep := model.NewDepTree(root) dep.Vendor = tags[0] dep.Name = tags[1] -- Gitee