From feeb0a58321418a3afc63849255b94c4c58426cd Mon Sep 17 00:00:00 2001 From: Omer Zidkoni Date: Sun, 19 Nov 2023 12:43:14 +0200 Subject: [PATCH] CR --- packagehandlers/mavenpackagehandler.go | 2 +- packagehandlers/packagehandlers_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packagehandlers/mavenpackagehandler.go b/packagehandlers/mavenpackagehandler.go index 38c48b2c2..05c9d7914 100644 --- a/packagehandlers/mavenpackagehandler.go +++ b/packagehandlers/mavenpackagehandler.go @@ -135,7 +135,7 @@ func NewMavenPackageHandler(scanDetails *utils.ScanDetails) *MavenPackageHandler } // The mvn-dep-tree plugin has already been installed during the audit dependency tree build phase, // Therefore, we set the `isDepTreeInstalled` flag to true - mavenDepTreeManager := java.NewMavenDepTreeManager(depTreeParams, java.ProjectsCmd, true) + mavenDepTreeManager := java.NewMavenDepTreeManager(depTreeParams, java.Projects, true) return &MavenPackageHandler{MavenDepTreeManager: mavenDepTreeManager} } diff --git a/packagehandlers/packagehandlers_test.go b/packagehandlers/packagehandlers_test.go index d98f6514e..f19dc8b83 100644 --- a/packagehandlers/packagehandlers_test.go +++ b/packagehandlers/packagehandlers_test.go @@ -481,7 +481,7 @@ func TestGetDependenciesFromDependencyManagement(t *testing.T) { } func TestGetProjectPoms(t *testing.T) { - mvnHandler := &MavenPackageHandler{MavenDepTreeManager: java.NewMavenDepTreeManager(&java.DepTreeParams{}, java.ProjectsCmd, false)} + mvnHandler := &MavenPackageHandler{MavenDepTreeManager: java.NewMavenDepTreeManager(&java.DepTreeParams{}, java.Projects, false)} currDir, err := os.Getwd() assert.NoError(t, err) tmpDir, err := os.MkdirTemp("", "")