Skip to content

Commit

Permalink
Remove maven threads configuration based on GOMAXPROCS #5467
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed May 8, 2024
1 parent 1e074db commit d012e86
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/util/maven/maven_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
"os/exec"
"path/filepath"
"regexp"
"runtime"
"strconv"
"strings"

"github.com/apache/camel-k/v2/pkg/util"
Expand Down Expand Up @@ -89,14 +87,6 @@ func (c *Command) Do(ctx context.Context) error {
args = append(args, "-Dsettings.security="+settingsSecurityPath)
}

if !util.StringContainsPrefix(c.context.AdditionalArguments, "-Dmaven.artifact.threads") {
args = append(args, "-Dmaven.artifact.threads="+strconv.Itoa(runtime.GOMAXPROCS(0)))
}

if !util.StringSliceExists(c.context.AdditionalArguments, "-T") {
args = append(args, "-T", strconv.Itoa(runtime.GOMAXPROCS(0)))
}

cmd := exec.CommandContext(ctx, mvnCmd, args...)
cmd.Dir = c.context.Path

Expand Down

0 comments on commit d012e86

Please sign in to comment.