Fork me on GitHub

build-helper:cpu-count

Full name:

org.codehaus.mojo:build-helper-maven-plugin:3.5.0:cpu-count

Description:

Retrieve number of CPUs with project factor, and place it under a configurable project property

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.9.
  • Binds by default to the lifecycle phase: initialize.

Optional Parameters

Name Type Since Description
<cpuCount> String - The name of the property in which to store the CPU count.
Default value is: cpu.count.
<factor> float - Projection factor.
Default value is: 1.0.

Parameter Details

<cpuCount>

The name of the property in which to store the CPU count.
  • Type: java.lang.String
  • Required: No
  • Default: cpu.count

<factor>

Projection factor.
  • Type: float
  • Required: No
  • Default: 1.0