$headContent

rpm:version

Full name:

org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:version

Description:

Makes the rpm version and release attributes available as properties.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • 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.
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.



Parameter Details

projversion:

The version portion of the RPM file name.
  • Type: java.lang.String
  • Since: 2.0
  • Required: Yes
  • Expression: ${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

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