Skip to content

Commit

Permalink
multi module project fix
Browse files Browse the repository at this point in the history
  • Loading branch information
司芳源 committed Jun 11, 2019
1 parent 76f9d5e commit 1045424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1045424

Please sign in to comment.