diff --git a/pkg/util/maven/maven_command.go b/pkg/util/maven/maven_command.go index 54fb1503de..df7e0856b0 100644 --- a/pkg/util/maven/maven_command.go +++ b/pkg/util/maven/maven_command.go @@ -26,8 +26,6 @@ import ( "os/exec" "path/filepath" "regexp" - "runtime" - "strconv" "strings" "github.com/apache/camel-k/v2/pkg/util" @@ -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