Skip to content

Commit

Permalink
konveyor#393 Do not use Maven compile goal
Browse files Browse the repository at this point in the history
CAUTION: This works currently only with a newer version of Maven (tested with 3.9.5).
  • Loading branch information
ascheman committed Oct 31, 2023
1 parent 749f298 commit 8d024e2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions provider/internal/java/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,10 @@ func (p *javaServiceClient) GetDependenciesDAG(ctx context.Context) (map[uri.URI

moddir := filepath.Dir(path)

pom, err := gopom.Parse(path)
if err != nil {
return nil, err
}

args := []string{
"dependency:tree",
"-Djava.net.useSystemProxies=true",
}
if pom.Modules != nil {
args = append([]string{"compile"}, args...)
}

if p.mvnSettingsFile != "" {
args = append(args, "-s", p.mvnSettingsFile)
Expand Down

0 comments on commit 8d024e2

Please sign in to comment.