Skip to content

mvnd ignores -b (--builder) and -T (--threads) parameter #1439

@seregamorph

Description

@seregamorph

Affected version

1.0.3

Bug description

Maven Daemon prefers Takari smart builder by default.
The problem is that it ignores explicitly configured builder on the command line or in the .mvn/maven.config.
E.g. it's not possible to use https://github.com/maven-turbo-reactor/maven-turbo-builder adding it to .mvn/extensions.xml in combination with neither CLI -b turbo nor .mvn/maven.config -bturbo.

According to mvnd -h | grep builder there are two ways for it:

 -b,--builder <arg>                      The id of the build strategy to use
 -Dmvnd.builder=<string>;-b,--builder <string> The builder implementation the daemon should use.
                                        takari-smart-builder extension, remain buildable with mvnd (where use of this extension would cause issues). Value is expected as comma separated pairs.
                                        Default: io.takari.maven:takari-smart-builder

The second -Dmvnd.builder=turbo works fine.

Same problem with -T (--threads) which is always defined as default -T1C (-Dmvnd.threads=6 works fine). But the mvnd -h claims both should be supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions