build-helper:regex-property
Full name:
org.codehaus.mojo:build-helper-maven-plugin:3.6.1:regex-property
Description:
Sets a property by applying a regex replacement rule to a supplied value.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Since version:
1.7. - Binds by default to the lifecycle phase:
validate.
Required Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<name> |
String |
- |
The property to set. |
<regex> |
String |
- |
The regex to replace. |
<value> |
String |
- |
The pre-transformation value. |
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<failIfNoMatch> |
boolean |
- |
Whether to fail if no match is found. Default: true |
<replacement> |
String |
- |
The replacement. |
<toLowerCase> |
boolean |
1.11 |
Make the value of the resulting property lower case. Default: false |
<toUpperCase> |
boolean |
1.11 |
Make the value of the resulting property upper case. Default: false |
Parameter Details
<failIfNoMatch>
Whether to fail if no match is found.
- Type:
boolean - Required:
No - Default:
true
<name>
The property to set.
- Type:
java.lang.String - Required:
Yes
<regex>
The regex to replace.
- Type:
java.lang.String - Required:
Yes
<replacement>
The replacement.
- Type:
java.lang.String - Required:
No
<toLowerCase>
Make the value of the resulting property lower case.
- Type:
boolean - Since:
1.11 - Required:
No - Default:
false
<toUpperCase>
Make the value of the resulting property upper case.
- Type:
boolean - Since:
1.11 - Required:
No - Default:
false
<value>
The pre-transformation value.
- Type:
java.lang.String - Required:
Yes

