Maven Execution Template
The ExecutionTemplate which is created using the mvn execution builder function. This template class is used as a builder to construct the arguments to starts a Maven process.
Properties
Functions
Sets the number of threads for the Maven process to MAX_THREADS - 1
, where MAX_THREADS
is the maximum amount of threads available on the machine. One thread is subtracted to ensure that there's always one thread on the machine not being used by Maven, so it can be scheduled for other tasks.
Adds a build profile to the Maven execution. A profile can also be explicitly excluded by prefixing it with !
or -
.
Sets the number of threads that should be used by Maven to execute the requested task(s). This function takes a String value with the syntax required by Maven's -T
argument. The function maxThreads can be used as an alternative to set this value.