Fork me on GitHub

build-helper:cpu-count

Full name:

org.codehaus.mojo:build-helper-maven-plugin:3.0.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 1.9 The name of the property in which to store the CPU count.
Default value is: cpu.count.
factor float 1.9 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
  • Since: 1.9
  • Required: No
  • Default: cpu.count

factor:

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