From 1045424dc4ac6fb444be423ac6c686aecfe95021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B8=E8=8A=B3=E6=BA=90?= Date: Tue, 11 Jun 2019 15:13:49 +0800 Subject: [PATCH] multi module project fix --- pom/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom/parse.go b/pom/parse.go index 8aea6e3..ac0db54 100644 --- a/pom/parse.go +++ b/pom/parse.go @@ -22,7 +22,7 @@ func (a Artifact) String() string { } func ListDep(mvnCmd, pomFile string) []Artifact { - cmd := exec.Command(mvnCmd, "dependency:list", "-DexcludeTransitive") + cmd := exec.Command(mvnCmd, "clean", "compile", "dependency:list", "-DexcludeTransitive") cmd.Dir = filepath.Dir(pomFile) if out, err := cmd.Output(); err != nil { log.Fatalf("run mvn command error. %v", err)