rpm-cbuild:platform-detect

Full name:

org.codehaus.mojo:rpm-cbuild-maven-plugin:1.0-beta-1:platform-detect

Description:

This goal will do basic validation of the project for use with the rpm-cbuild-maven-plugin and set Maven dynamic properties which will be needed in later rpm-cbuild goals

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: validate.

Optional Parameters

Name Type Since Description
archProperty String 1.0-beta-1 platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The system architecture (i386, x86_64, etc) will be the value and the value of archProperty will be the name of the dynamic Maven property.
Default value is: DYNAMIC.CBUILDPROP.ARCH.
osProperty String 1.0-beta-1 platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The system os name (rhel3, fc10, osx5, etc) will be the value and the value of osProperty will be the name of the dynamic Maven property.
Default value is: DYNAMIC.CBUILDPROP.OS.
rpmReleaseProperty String 1.0-beta-1 platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The declared maven project's version will be parsed to derive an RPM release number. This will be concatenated in the rpm-cbuild-maven-plugin with the platform distro (rhel3, osx5, centos5, etc) to get you a full rpm release named something like 4.rhel3. The release will be the string to the right of the last dash and must be SNAPSHOT or a numeric value, otherwise an error will be generated.
Default value is: DYNAMIC.CBUILDPROP.RPM.RELEASE.
rpmVersionProperty String 1.0-beta-1 platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The declared maven project's version will be parsed to derive an RPM version. Many legal maven version will generate an error as they introduce compatibility problems with RPM version numbers. Legal maven versions are similar to 1.2.3-SNAPSHOT and 1.2.3-4. The version will be the string to the left of the last dash. Maven keywords like ALPHA, BETA, RC, and the like will generate an error. Don't use maven milestone versioning either such as 2.1.0-M1-1 as this will not do what you expect when put into RPM packaging. If you run into one of these Maven projects that you want to put in an RPM, best to version it as either 2.1.0-SNAPSHOT or 2.0.999-1.
Default value is: DYNAMIC.CBUILDPROP.RPM.VERSION.
skip boolean 1.0-beta-1 Whether to skip RPM platform-detect file generation.
Default value is: false.
skipPlatformPostfix boolean 1.0-beta-1 Whether to skip postfix on RPM release number. When this is set, the RPM BuildArch: will be set to noarch and the RPM Release: will only have the release number established by this platform-detect goal. When set to true, no BuildArch: will be set in the RPM and the release will have a release number and a platform postfix in it so you can tell what operating system distro was used when the RPM was created.
Default value is: false.

Parameter Details

archProperty:

platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The system architecture (i386, x86_64, etc) will be the value and the value of archProperty will be the name of the dynamic Maven property.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • Default: DYNAMIC.CBUILDPROP.ARCH

osProperty:

platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The system os name (rhel3, fc10, osx5, etc) will be the value and the value of osProperty will be the name of the dynamic Maven property.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • Default: DYNAMIC.CBUILDPROP.OS

rpmReleaseProperty:

platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The declared maven project's version will be parsed to derive an RPM release number. This will be concatenated in the rpm-cbuild-maven-plugin with the platform distro (rhel3, osx5, centos5, etc) to get you a full rpm release named something like 4.rhel3. The release will be the string to the right of the last dash and must be SNAPSHOT or a numeric value, otherwise an error will be generated.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • Default: DYNAMIC.CBUILDPROP.RPM.RELEASE

rpmVersionProperty:

platform-detect will set a Maven property during runtime which the project's POM may utilize after this plugin runs. The declared maven project's version will be parsed to derive an RPM version. Many legal maven version will generate an error as they introduce compatibility problems with RPM version numbers. Legal maven versions are similar to 1.2.3-SNAPSHOT and 1.2.3-4. The version will be the string to the left of the last dash. Maven keywords like ALPHA, BETA, RC, and the like will generate an error. Don't use maven milestone versioning either such as 2.1.0-M1-1 as this will not do what you expect when put into RPM packaging. If you run into one of these Maven projects that you want to put in an RPM, best to version it as either 2.1.0-SNAPSHOT or 2.0.999-1.
  • Type: java.lang.String
  • Since: 1.0-beta-1
  • Required: No
  • Default: DYNAMIC.CBUILDPROP.RPM.VERSION

skip:

Whether to skip RPM platform-detect file generation.
  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • Expression: ${skipPlatformDetect}
  • Default: false

skipPlatformPostfix:

Whether to skip postfix on RPM release number. When this is set, the RPM BuildArch: will be set to noarch and the RPM Release: will only have the release number established by this platform-detect goal. When set to true, no BuildArch: will be set in the RPM and the release will have a release number and a platform postfix in it so you can tell what operating system distro was used when the RPM was created.
  • Type: boolean
  • Since: 1.0-beta-1
  • Required: No
  • Expression: ${skipPlatformPostfix}
  • Default: false