Skip to content

Commit 28ce11d

Browse files
committed
fix: SCA-32 maven additional args handling
1 parent f45ff37 commit 28ce11d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

module/maven/mvn_cmd_utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ func CheckMvnCommand(ctx context.Context, isNoBuild bool) (info *MvnCommandInfo,
9898
}
9999
info.JavaHome = toolVer.Maven.JavaHome
100100
info.UserSettingsPath = toolVer.Maven.MavenSettingPath
101+
info.AdditionalArgs = toolVer.Maven.AdditionalArgs
102+
info.AdditionalPrependArgs = toolVer.Maven.AdditionalPrependArgs
101103
// check version
102104
ver, e := checkMvnVersion(ctx, info.Path, info.JavaHome)
103105
if e != nil {

module/maven/mvn_graph_cmd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ package maven
33
import (
44
"context"
55
"fmt"
6+
"strings"
7+
"time"
8+
69
"github.com/murphysecurity/murphysec/env"
710
"github.com/murphysecurity/murphysec/infra/logctx"
811
"github.com/murphysecurity/murphysec/infra/logpipe"
912
"github.com/murphysecurity/murphysec/utils"
1013
"github.com/pkg/errors"
1114
"go.uber.org/zap"
12-
"strings"
13-
"time"
1415
)
1516

1617
// PluginGraphCmd helper to com.github.ferstl:depgraph-maven-plugin:4.0.1:graph

0 commit comments

Comments
 (0)