build-helper:regex-property
Full name:
org.codehaus.mojo:build-helper-maven-plugin:1.8: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 |
1.7 |
The property to set.
|
| regex |
String |
1.7 |
The regex to replace.
|
| value |
String |
1.7 |
The pre-transformation value.
|
Optional Parameters
| Name |
Type |
Since |
Description |
| failIfNoMatch |
boolean |
1.7 |
Whether to fail if no match is found. Default value is: true.
|
| replacement |
String |
1.7 |
The replacement.
|
Parameter Details
failIfNoMatch:
Whether to fail if no match is found.
- Type: boolean
- Since: 1.7
- Required: No
- Default: true
name:
The property to set.
- Type: java.lang.String
- Since: 1.7
- Required: Yes
regex:
The regex to replace.
- Type: java.lang.String
- Since: 1.7
- Required: Yes
replacement:
The replacement.
- Type: java.lang.String
- Since: 1.7
- Required: No
value:
The pre-transformation value.
- Type: java.lang.String
- Since: 1.7
- Required: Yes