Full name:
org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate
Description:
Attributes:
Name | Type | Since | Description |
---|---|---|---|
<artifact> | String | 2.1 | 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 is: artifact. |
<expression> | String | 2.1 | An expression to evaluate instead of prompting. Note that this
must not include the surrounding ${...}. User property is: 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 Default value is: false. User property is: 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 is: output. |
RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) echo $RESULT