Full name:
com.coremedia.maven:coremedia-application-maven-plugin:2.7.9:rpm
Description:
Since the versioning scheme of rpm artifacts does not have a "SNAPSHOT" syntax and therefore requires an incremental integer, we have to handle a reasonable default it with more care.
Attributes:
Name | Type | Since | Description |
---|---|---|---|
classifier | String | 2.4 | The classifier used for installing or deploying the created
artifact |
outputDirectory | File | 2.0 | Location of the assembled application. Default value is: ${project.build.directory}/${project.build.finalName}. |
outputFile | File | 2.4 | The path of the archive to be created. The default value will be
${project.build.directory}/${project.build.finalName}.[zip|war|rpm] |
rpmConfig | RpmConfig | 2.4 | The main configuration for the rpm goal. The following snippet
shows an example configuration with one mapping and one symlink. If
an element contains a "|" character it means that this element can
be left empty in which case a default value will be applied.
<rpmConfig> <name>${project.artifactId}</name> <group>Unspecified</group> <version>${project.version}</version> <release>see extra explanation </release> ##see extra explanation below <url>${project.organisation.url}</url> <vendor>${project.organisation.name}</vendor> <host>the hostname of your machine if set</host> <packager>${user.name}</packager> <type>BINARY</type> <architecture>NOARCH</architecture> <os>LINUX</os> <targetRoot>/opt/coremedia</targetRoot> <defaultuser>root</defaultuser> <defaultgroup>root</defaultgroup> <defaultfilemode>644</defaultfilemode> <defaultdirmode>755</defaultdirmode> <createEmptyDirs>false</createEmptyDirs> <mapping> <directory>bin/service</directory> <includes>**/*</includes> <excludes>private/**</exludes> <prefix>/etc/init.d/</prefix> <dirmode>755 | [rpmConfig.defaultdirmode]</filemode> <filemode>644 | [rpmConfig.defaultfilemode]</filemode> <groupname>coremedia | [rpmConfig.defaultgroup]</groupname> <username>coremedia | [rpmConfig.defaultuser]</username> <directive>[NONE | CONFIG | DOC | ICON | MISSINGOK | NOREPLACE | SPECFILE | GHOST | LICENSE | README | EXCLUDE | UNPATCHED | PUBKEY | POLICY]<directive> </mapping> </mappings> <symlinks> <symlink> <source>/var/log/coremedia/${project.artifactId}</source> <target>var/logs</target> <permissions>"644" | [rpmConfig.defaultfilemode]</permissions> </symlink> </symlinks> <dependencies> <dependency> <packageName>ksh</packageName> <minVersion>1211323</minVersion> </dependency> <dependency> <packageName>httpd</packageName> <maxVersion>2.2.20</maxVersion> </dependency> </dependencies> <preInstallScript>PATH TO SCRIPT</preInstallScript> <postInstallScript>PATH TO SCRIPT</postInstallScript> <preUninstallScript>PATH TO SCRIPT</preUninstallScript> <postUninstallScript>PATH TO SCRIPT</postUninstallScript> </rpmConfig> For all possible directives and their interpretations visit rpm.org |
skipArchiving | boolean | 2.4 | Skips the archive creation. Default value is: false. |
skipRpmArchiving | boolean | 2.7 | Skips the archive creation. Default value is: false. User property is: skipRpmArchiving. |
<rpmConfig> <name>${project.artifactId}</name> <group>Unspecified</group> <version>${project.version}</version> <release>see extra explanation </release> ##see extra explanation below <url>${project.organisation.url}</url> <vendor>${project.organisation.name}</vendor> <host>the hostname of your machine if set</host> <packager>${user.name}</packager> <type>BINARY</type> <architecture>NOARCH</architecture> <os>LINUX</os> <targetRoot>/opt/coremedia</targetRoot> <defaultuser>root</defaultuser> <defaultgroup>root</defaultgroup> <defaultfilemode>644</defaultfilemode> <defaultdirmode>755</defaultdirmode> <createEmptyDirs>false</createEmptyDirs> <mapping> <directory>bin/service</directory> <includes>**/*</includes> <excludes>private/**</exludes> <prefix>/etc/init.d/</prefix> <dirmode>755 | [rpmConfig.defaultdirmode]</filemode> <filemode>644 | [rpmConfig.defaultfilemode]</filemode> <groupname>coremedia | [rpmConfig.defaultgroup]</groupname> <username>coremedia | [rpmConfig.defaultuser]</username> <directive>[NONE | CONFIG | DOC | ICON | MISSINGOK | NOREPLACE | SPECFILE | GHOST | LICENSE | README | EXCLUDE | UNPATCHED | PUBKEY | POLICY]<directive> </mapping> </mappings> <symlinks> <symlink> <source>/var/log/coremedia/${project.artifactId}</source> <target>var/logs</target> <permissions>"644" | [rpmConfig.defaultfilemode]</permissions> </symlink> </symlinks> <dependencies> <dependency> <packageName>ksh</packageName> <minVersion>1211323</minVersion> </dependency> <dependency> <packageName>httpd</packageName> <maxVersion>2.2.20</maxVersion> </dependency> </dependencies> <preInstallScript>PATH TO SCRIPT</preInstallScript> <postInstallScript>PATH TO SCRIPT</postInstallScript> <preUninstallScript>PATH TO SCRIPT</preUninstallScript> <postUninstallScript>PATH TO SCRIPT</postUninstallScript> </rpmConfig>
For all possible directives and their interpretations visit rpm.org