help:evaluate

Full name:

org.apache.maven.plugins:maven-help-plugin:3.5.1:evaluate

Description:

Evaluates Maven expressions given by the user in an interactive mode.

Attributes:

  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Since version: 2.1.

Optional Parameters

Name Type Since Description
<artifact> String - An artifact for evaluating Maven expressions.
Note: Should respect the Maven format, i.e. groupId:artifactId[:version]. The latest version of the artifact will be used when no version is specified.
User Property: artifact
<expression> String - An expression to evaluate instead of prompting. Note that this must not include the surrounding ${...}.
User Property: expression
<forceStdout> boolean 3.1.0 This options gives the option to output information in cases where the output has been suppressed by using -q (quiet option) in Maven. This is useful if you like to use maven-help-plugin:evaluate in a script call (for example in bash) like this:
RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo $RESULT
This will only printout the information which has been requested by expression to stdout.
Default: false
User Property: forceStdout
<output> File 3.0.0 Optional parameter to write the output of this help in a given file, instead of writing to the console. This parameter will be ignored if no expression is specified.
Note: Could be a relative path.
User Property: output

Parameter Details

<artifact>

An artifact for evaluating Maven expressions.
Note: Should respect the Maven format, i.e. groupId:artifactId[:version]. The latest version of the artifact will be used when no version is specified.
  • Type: java.lang.String
  • Required: No
  • User Property: artifact

<expression>

An expression to evaluate instead of prompting. Note that this must not include the surrounding ${...}.
  • Type: java.lang.String
  • Required: No
  • User Property: expression

<forceStdout>

This options gives the option to output information in cases where the output has been suppressed by using -q (quiet option) in Maven. This is useful if you like to use maven-help-plugin:evaluate in a script call (for example in bash) like this:
RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo $RESULT
This will only printout the information which has been requested by expression to stdout.
  • Type: boolean
  • Since: 3.1.0
  • Required: No
  • User Property: forceStdout
  • Default: false

<output>

Optional parameter to write the output of this help in a given file, instead of writing to the console. This parameter will be ignored if no expression is specified.
Note: Could be a relative path.
  • Type: java.io.File
  • Since: 3.0.0
  • Required: No
  • User Property: output