rpm:version
Full name:
org.codehaus.mojo:rpm-maven-plugin:2.2.0:version
Description:
Makes the rpm version and release attributes available as
properties.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Since version: 2.0.
- Binds by default to the lifecycle phase: initialize.
Required Parameters
Name |
Type |
Since |
Description |
projversion |
String |
2.0 |
The version portion of the RPM file name. Default value is: ${project.version}. User property is: rpm.version. |
releaseProperty |
String |
2.0 |
The system property to set the calculated release to. Default value is: rpm.release.
|
versionProperty |
String |
2.0 |
The system property to set the calculated version to. Default value is: rpm.version.
|
Optional Parameters
Name |
Type |
Since |
Description |
release |
String |
2.0 |
The release portion of the RPM file name.
This is an optional parameter. By default, the release will be
generated from the modifier portion of the project version using the following
rules:
- If no modifier exists, the release will be 1.
- If the modifier ends with SNAPSHOT, the timestamp (in
UTC) of the build will be appended to end.
- All instances of '-' in the modifier will be
replaced with '_'.
- If a modifier exists and does not end with SNAPSHOT,
"_1" will be appended to end.
User property is: rpm.release. |
Parameter Details
projversion:
The version portion of the RPM file name.
- Type: java.lang.String
- Since: 2.0
- Required: Yes
- User Property: rpm.version
- Default: ${project.version}
release:
The release portion of the RPM file name.
This is an optional parameter. By default, the release will be
generated from the modifier portion of the project version using the following
rules:
- If no modifier exists, the release will be 1.
- If the modifier ends with SNAPSHOT, the timestamp (in
UTC) of the build will be appended to end.
- All instances of '-' in the modifier will be
replaced with '_'.
- If a modifier exists and does not end with SNAPSHOT,
"_1" will be appended to end.
- Type: java.lang.String
- Since: 2.0
- Required: No
- User Property: rpm.release
releaseProperty:
The system property to set the calculated release to.
- Type: java.lang.String
- Since: 2.0
- Required: Yes
- Default: rpm.release
versionProperty:
The system property to set the calculated version to.
- Type: java.lang.String
- Since: 2.0
- Required: Yes
- Default: rpm.version