Fork me on GitHub

rpm:version

Full name:

org.codehaus.mojo:rpm-maven-plugin:2.3.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 - The version portion of the RPM file name.
Default value is: ${project.version}.
User property is: rpm.version.
Alias is: version.
<releaseProperty> String - The system property to set the calculated release to.
Default value is: rpm.release.
<versionProperty> String - The system property to set the calculated version to.
Default value is: rpm.version.

Optional Parameters

Name Type Since Description
<release> String - 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
  • Required: Yes
  • User Property: rpm.version
  • Default: ${project.version}
  • Alias: 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
  • Required: No
  • User Property: rpm.release

<releaseProperty>

The system property to set the calculated release to.
  • Type: java.lang.String
  • Required: Yes
  • Default: rpm.release

<versionProperty>

The system property to set the calculated version to.
  • Type: java.lang.String
  • Required: Yes
  • Default: rpm.version