astefanutti commented on code in PR #3344:
URL: https://github.com/apache/camel-k/pull/3344#discussion_r895658120


##########
pkg/util/maven/maven_command.go:
##########
@@ -74,6 +76,13 @@ func (c *Command) Do(ctx context.Context) error {
                args = append(args, "--settings", settingsPath)
        }
 
+       if !util.StringContainsPrefix(c.context.AdditionalArguments, 
"-Dmaven.artifact.threads") {
+               args = append(args, 
"-Dmaven.artifact.threads="+strconv.Itoa(runtime.GOMAXPROCS(0)))
+       }
+       if !util.StringContainsPrefix(c.context.AdditionalArguments, "-T") {

Review Comment:
   I think that'd be more robust to compare for equality here, as `-T` is too 
broad, and users are generally using the `-T N` form anyway.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to