Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>

<!-- Generated by maven-plugin-tools 3.3 on 2014-10-28 -->

<plugin>
  <name>RPM Maven Plugin</name>
  <description>Maven plugin which assembles files into an RPM package for installation on various target UNIX systems.</description>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>rpm-maven-plugin</artifactId>
  <version>2.1</version>
  <goalPrefix>rpm</goalPrefix>
  <mojos>
    <mojo>
      <goal>attached-rpm</goal>
      <description>Construct the RPM file and attaches it as a secondary artifact.</description>
      <requiresDependencyResolution>runtime</requiresDependencyResolution>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>package</phase>
      <implementation>org.codehaus.mojo.rpm.AttachedRPMMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <since>2.0-beta-2</since>
      <threadSafe>true</threadSafe>
      <parameters>
        <parameter>
          <name>autoProvides</name>
          <type>boolean</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>Automatically add provided shared libraries.</description>
        </parameter>
        <parameter>
          <name>autoRequires</name>
          <type>boolean</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>Automatically add requirements deduced from included shared libraries.</description>
        </parameter>
        <parameter>
          <name>changelogFile</name>
          <type>java.io.File</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The changelog file. If the file does not exist, it is ignored.</description>
        </parameter>
        <parameter>
          <name>classifier</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The classifier for the rpm secondary artifact.</description>
        </parameter>
        <parameter>
          <name>cleanScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The clean scriptlet.</description>
        </parameter>
        <parameter>
          <name>conflicts</name>
          <type>java.util.LinkedHashSet</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of conflicts for this package.</description>
        </parameter>
        <parameter>
          <name>defaultDirmode</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default directory mode (octal string) to assign to directories when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defaultFilemode</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default file mode (octal string) to assign to files when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defaultGroupname</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default group name for files when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defaultUsername</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default user name for files when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defineStatements</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>A list of %define arguments</description>
        </parameter>
        <parameter>
          <name>description</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The long description of the package.</description>
        </parameter>
        <parameter>
          <name>disabled</name>
          <type>boolean</type>
          <since>2.0</since>
          <required>false</required>
          <editable>true</editable>
          <description>Indicates if the execution should be disabled. If true, nothing will occur during execution.</description>
        </parameter>
        <parameter>
          <name>distribution</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The distribution containing this package.</description>
        </parameter>
        <parameter>
          <name>escapeString</name>
          <type>java.lang.String</type>
          <since>2.0</since>
          <required>false</required>
          <editable>true</editable>
          <description>Expression preceded with the String won&apos;t be interpolated \${foo} will be replaced with ${foo}</description>
        </parameter>
        <parameter>
          <name>filters</name>
          <type>java.util.List</type>
          <since>2.0</since>
          <required>false</required>
          <editable>true</editable>
          <description>Filters (property files) to include during the interpolation of the pom.xml.</description>
        </parameter>
        <parameter>
          <name>group</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The package group for the package.</description>
        </parameter>
        <parameter>
          <name>icon</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>An icon for the package.</description>
        </parameter>
        <parameter>
          <name>installScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The installation scriptlet.</description>
        </parameter>
        <parameter>
          <name>keyname</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Set to a key name to sign the package using GPG. If keyPassphrase is not also provided, this will require the input of the passphrase at the terminal.</description>
        </parameter>
        <parameter>
          <name>keyPassphrase</name>
          <type>org.codehaus.mojo.rpm.Passphrase</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The passphrase for the keyname to sign the rpm. This utilizes expect and requires that expect be on the PATH.
Note that the data type used is NOT String.

&lt;configuration&gt;
    ...
    &lt;keyPassphrase&gt;
        &lt;passphrase&gt;password&lt;/passphrase&gt;
    &lt;/keyPassphrase&gt;


</description>
        </parameter>
        <parameter>
          <name>license</name>
          <type>java.lang.String</type>
          <since>2.1-alpha-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The one-line license information.</description>
        </parameter>
        <parameter>
          <name>mappings</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of file mappings.</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The name portion of the output file name.</description>
        </parameter>
        <parameter>
          <name>needarch</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The target architecture for the rpm. The default value is noarch.
For passivity purposes, a value of true or false will indicate whether the architecture of the build machine will be used. Any other value (such as x86_64) will set the architecture of the rpm to x86_64.

This can also be used in conjunction with Source targetArchitecture to flex the contents of the rpm based on the architecture.
</description>
        </parameter>
        <parameter>
          <name>obsoletes</name>
          <type>java.util.LinkedHashSet</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The list of obsoletes for this package.</description>
        </parameter>
        <parameter>
          <name>packager</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the person or group creating the package.</description>
        </parameter>
        <parameter>
          <name>postinstallScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The post install scriptlet.</description>
        </parameter>
        <parameter>
          <name>postremoveScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The post-removal scriptlet.</description>
        </parameter>
        <parameter>
          <name>posttransScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The posttrans script.</description>
        </parameter>
        <parameter>
          <name>prefixes</name>
          <alias>prefixes</alias>
          <type>java.lang.String[]</type>
          <since>2.1-alpha-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The relocation prefixes for this package.</description>
        </parameter>
        <parameter>
          <name>preinstallScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-installation scriptlet.</description>
        </parameter>
        <parameter>
          <name>prepareScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The prepare scriptlet;</description>
        </parameter>
        <parameter>
          <name>preremoveScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-removal scriptlet.</description>
        </parameter>
        <parameter>
          <name>prereqs</name>
          <type>java.util.LinkedHashSet</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The list of prerequisites for this package.</description>
        </parameter>
        <parameter>
          <name>pretransScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The pretrans scriptlet.</description>
        </parameter>
        <parameter>
          <name>projversion</name>
          <alias>version</alias>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The version portion of the RPM file name.</description>
        </parameter>
        <parameter>
          <name>provides</name>
          <type>java.util.LinkedHashSet</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of virtual packages provided by this package.</description>
        </parameter>
        <parameter>
          <name>release</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The release portion of the RPM file name.
Beginning with 2.0-beta-2, 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 &apos;-&apos; in the modifier will be replaced with &apos;_&apos;.
-	If a modifier exists and does not end with SNAPSHOT, &apos;_1&apos; will be appended to end.


</description>
        </parameter>
        <parameter>
          <name>releaseProperty</name>
          <type>java.lang.String</type>
          <since>2.1-alpha-2</since>
          <required>true</required>
          <editable>true</editable>
          <description>The system property to read the calculated release from, normally set by the version mojo.</description>
        </parameter>
        <parameter>
          <name>repackJars</name>
          <type>boolean</type>
          <since>2.1-alpha-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>Should brp-repack-jars be used in the RPM build. Defaults to false. If it is false brp-repack-jars will be disabled by:
%define __jar_repack 0 This will have no effect on RHEL5 or earlier release.</description>
        </parameter>
        <parameter>
          <name>requires</name>
          <type>java.util.LinkedHashSet</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of requirements for this package.</description>
        </parameter>
        <parameter>
          <name>summary</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The one-line description of the package.</description>
        </parameter>
        <parameter>
          <name>targetOS</name>
          <type>java.lang.String</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The target os for building the RPM. By default, this will be populated to Os.OS_NAME.
This can be used in conjunction with Source targetOSName to flex the contents of the rpm based on operating system.
</description>
        </parameter>
        <parameter>
          <name>targetVendor</name>
          <type>java.lang.String</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The target vendor for building the RPM. By default, this will be populated to the result of rpm -E %{_host_vendor}.</description>
        </parameter>
        <parameter>
          <name>triggers</name>
          <type>java.util.List</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The list of triggers to take place on installation of other packages.
 &lt;triggers&gt;
     &lt;installTrigger&gt;
         &lt;subpackage&gt;optional&lt;/subpackage&gt;
         &lt;program&gt;program to execute (if not shell) optional&lt;/program&gt;
         &lt;script&gt;actual contents of script - optional&lt;/script&gt;
         &lt;scriptFile&gt;location of file containing script - optional&lt;/script&gt;
         &lt;fileEncoding&gt;character encoding for script file - recommended&lt;/fileEncoding&gt;
         &lt;triggers&gt;
             &lt;trigger&gt;package/version to trigger on (i.e. jre &gt; 1.5)&lt;/trigger&gt;
             ...
         &lt;/triggers&gt;
     &lt;/installTrigger&gt;
     &lt;removeTrigger&gt;
         ...
     &lt;/removeTrigger&gt;
     &lt;postRemoveTrigger&gt;
         ...
     &lt;/postRemoveTrigger&gt;
     ...
 &lt;/triggers&gt;
</description>
        </parameter>
        <parameter>
          <name>url</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>A URL for the vendor.</description>
        </parameter>
        <parameter>
          <name>vendor</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The vendor supplying the package.</description>
        </parameter>
        <parameter>
          <name>verifyScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The verify scriptlet.</description>
        </parameter>
        <parameter>
          <name>versionProperty</name>
          <type>java.lang.String</type>
          <since>2.1-alpha-2</since>
          <required>true</required>
          <editable>true</editable>
          <description>The system property to read the calculated version from, normally set by the version mojo.</description>
        </parameter>
        <parameter>
          <name>workarea</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The area for RPM to use for building the package.
NOTE: The absolute path to the workarea MUST NOT have a space in any of the directory names.
Beginning with release 2.0-beta-3, sub-directories will be created within the workarea for each execution of the plugin within a life cycle.
The pattern will be workarea/name[-classifier].
The classifier portion is only applicable for the attached-rpm goal.
</description>
        </parameter>
      </parameters>
      <configuration>
        <autoProvides implementation="boolean" default-value="true"/>
        <autoRequires implementation="boolean" default-value="true"/>
        <description implementation="java.lang.String">${project.description}</description>
        <escapeString implementation="java.lang.String">${maven.rpm.escapeString}</escapeString>
        <keyname implementation="java.lang.String">${gpg.keyname}</keyname>
        <name implementation="java.lang.String">${project.artifactId}</name>
        <packager implementation="java.lang.String">${project.organization.name}</packager>
        <projversion implementation="java.lang.String">${project.version}</projversion>
        <releaseProperty implementation="java.lang.String" default-value="rpm.release"/>
        <summary implementation="java.lang.String">${project.name}</summary>
        <url implementation="java.lang.String">${project.organization.url}</url>
        <vendor implementation="java.lang.String">${project.organization.name}</vendor>
        <versionProperty implementation="java.lang.String" default-value="rpm.version"/>
        <workarea implementation="java.io.File" default-value="${project.build.directory}/rpm"/>
      </configuration>
    </mojo>
    <mojo>
      <goal>help</goal>
      <description>Display help information on rpm-maven-plugin.
Call mvn rpm:help -Ddetail=true -Dgoal=&lt;goal-name&gt; to display parameter details.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>false</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <implementation>org.codehaus.mojo.rpm.HelpMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>true</threadSafe>
      <parameters>
        <parameter>
          <name>detail</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>If true, display all settable properties for each goal.</description>
        </parameter>
        <parameter>
          <name>goal</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the goal for which to show help. If unspecified, all goals will be displayed.</description>
        </parameter>
        <parameter>
          <name>indentSize</name>
          <type>int</type>
          <required>false</required>
          <editable>true</editable>
          <description>The number of spaces per indentation level, should be positive.</description>
        </parameter>
        <parameter>
          <name>lineLength</name>
          <type>int</type>
          <required>false</required>
          <editable>true</editable>
          <description>The maximum length of a display line, should be positive.</description>
        </parameter>
      </parameters>
      <configuration>
        <detail implementation="boolean" default-value="false">${detail}</detail>
        <goal implementation="java.lang.String">${goal}</goal>
        <indentSize implementation="int" default-value="2">${indentSize}</indentSize>
        <lineLength implementation="int" default-value="80">${lineLength}</lineLength>
      </configuration>
    </mojo>
    <mojo>
      <goal>rpm</goal>
      <description>Construct the RPM file.</description>
      <requiresDependencyResolution>runtime</requiresDependencyResolution>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>package</phase>
      <implementation>org.codehaus.mojo.rpm.RPMMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <threadSafe>true</threadSafe>
      <parameters>
        <parameter>
          <name>autoProvides</name>
          <type>boolean</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>Automatically add provided shared libraries.</description>
        </parameter>
        <parameter>
          <name>autoRequires</name>
          <type>boolean</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>Automatically add requirements deduced from included shared libraries.</description>
        </parameter>
        <parameter>
          <name>changelogFile</name>
          <type>java.io.File</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The changelog file. If the file does not exist, it is ignored.</description>
        </parameter>
        <parameter>
          <name>cleanScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The clean scriptlet.</description>
        </parameter>
        <parameter>
          <name>conflicts</name>
          <type>java.util.LinkedHashSet</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of conflicts for this package.</description>
        </parameter>
        <parameter>
          <name>defaultDirmode</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default directory mode (octal string) to assign to directories when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defaultFilemode</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default file mode (octal string) to assign to files when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defaultGroupname</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default group name for files when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defaultUsername</name>
          <type>java.lang.String</type>
          <since>2.0-beta-2</since>
          <required>false</required>
          <editable>true</editable>
          <description>The default user name for files when installed.
Only applicable to a Mapping if filemode, username, AND groupname are NOT populated.</description>
        </parameter>
        <parameter>
          <name>defineStatements</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>A list of %define arguments</description>
        </parameter>
        <parameter>
          <name>description</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The long description of the package.</description>
        </parameter>
        <parameter>
          <name>disabled</name>
          <type>boolean</type>
          <since>2.0</since>
          <required>false</required>
          <editable>true</editable>
          <description>Indicates if the execution should be disabled. If true, nothing will occur during execution.</description>
        </parameter>
        <parameter>
          <name>distribution</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The distribution containing this package.</description>
        </parameter>
        <parameter>
          <name>escapeString</name>
          <type>java.lang.String</type>
          <since>2.0</since>
          <required>false</required>
          <editable>true</editable>
          <description>Expression preceded with the String won&apos;t be interpolated \${foo} will be replaced with ${foo}</description>
        </parameter>
        <parameter>
          <name>filters</name>
          <type>java.util.List</type>
          <since>2.0</since>
          <required>false</required>
          <editable>true</editable>
          <description>Filters (property files) to include during the interpolation of the pom.xml.</description>
        </parameter>
        <parameter>
          <name>group</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The package group for the package.</description>
        </parameter>
        <parameter>
          <name>icon</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>An icon for the package.</description>
        </parameter>
        <parameter>
          <name>installScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The installation scriptlet.</description>
        </parameter>
        <parameter>
          <name>keyname</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>Set to a key name to sign the package using GPG. If keyPassphrase is not also provided, this will require the input of the passphrase at the terminal.</description>
        </parameter>
        <parameter>
          <name>keyPassphrase</name>
          <type>org.codehaus.mojo.rpm.Passphrase</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The passphrase for the keyname to sign the rpm. This utilizes expect and requires that expect be on the PATH.
Note that the data type used is NOT String.

&lt;configuration&gt;
    ...
    &lt;keyPassphrase&gt;
        &lt;passphrase&gt;password&lt;/passphrase&gt;
    &lt;/keyPassphrase&gt;


</description>
        </parameter>
        <parameter>
          <name>license</name>
          <type>java.lang.String</type>
          <since>2.1-alpha-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The one-line license information.</description>
        </parameter>
        <parameter>
          <name>mappings</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of file mappings.</description>
        </parameter>
        <parameter>
          <name>name</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The name portion of the output file name.</description>
        </parameter>
        <parameter>
          <name>needarch</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The target architecture for the rpm. The default value is noarch.
For passivity purposes, a value of true or false will indicate whether the architecture of the build machine will be used. Any other value (such as x86_64) will set the architecture of the rpm to x86_64.

This can also be used in conjunction with Source targetArchitecture to flex the contents of the rpm based on the architecture.
</description>
        </parameter>
        <parameter>
          <name>obsoletes</name>
          <type>java.util.LinkedHashSet</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The list of obsoletes for this package.</description>
        </parameter>
        <parameter>
          <name>packager</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The name of the person or group creating the package.</description>
        </parameter>
        <parameter>
          <name>postinstallScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The post install scriptlet.</description>
        </parameter>
        <parameter>
          <name>postremoveScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The post-removal scriptlet.</description>
        </parameter>
        <parameter>
          <name>posttransScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The posttrans script.</description>
        </parameter>
        <parameter>
          <name>prefixes</name>
          <alias>prefixes</alias>
          <type>java.lang.String[]</type>
          <since>2.1-alpha-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The relocation prefixes for this package.</description>
        </parameter>
        <parameter>
          <name>preinstallScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-installation scriptlet.</description>
        </parameter>
        <parameter>
          <name>prepareScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The prepare scriptlet;</description>
        </parameter>
        <parameter>
          <name>preremoveScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-removal scriptlet.</description>
        </parameter>
        <parameter>
          <name>prereqs</name>
          <type>java.util.LinkedHashSet</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The list of prerequisites for this package.</description>
        </parameter>
        <parameter>
          <name>pretransScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The pretrans scriptlet.</description>
        </parameter>
        <parameter>
          <name>projversion</name>
          <alias>version</alias>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The version portion of the RPM file name.</description>
        </parameter>
        <parameter>
          <name>provides</name>
          <type>java.util.LinkedHashSet</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of virtual packages provided by this package.</description>
        </parameter>
        <parameter>
          <name>release</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The release portion of the RPM file name.
Beginning with 2.0-beta-2, 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 &apos;-&apos; in the modifier will be replaced with &apos;_&apos;.
-	If a modifier exists and does not end with SNAPSHOT, &apos;_1&apos; will be appended to end.


</description>
        </parameter>
        <parameter>
          <name>releaseProperty</name>
          <type>java.lang.String</type>
          <since>2.1-alpha-2</since>
          <required>true</required>
          <editable>true</editable>
          <description>The system property to read the calculated release from, normally set by the version mojo.</description>
        </parameter>
        <parameter>
          <name>repackJars</name>
          <type>boolean</type>
          <since>2.1-alpha-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>Should brp-repack-jars be used in the RPM build. Defaults to false. If it is false brp-repack-jars will be disabled by:
%define __jar_repack 0 This will have no effect on RHEL5 or earlier release.</description>
        </parameter>
        <parameter>
          <name>requires</name>
          <type>java.util.LinkedHashSet</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of requirements for this package.</description>
        </parameter>
        <parameter>
          <name>summary</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The one-line description of the package.</description>
        </parameter>
        <parameter>
          <name>targetOS</name>
          <type>java.lang.String</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The target os for building the RPM. By default, this will be populated to Os.OS_NAME.
This can be used in conjunction with Source targetOSName to flex the contents of the rpm based on operating system.
</description>
        </parameter>
        <parameter>
          <name>targetVendor</name>
          <type>java.lang.String</type>
          <since>2.0-beta-3</since>
          <required>false</required>
          <editable>true</editable>
          <description>The target vendor for building the RPM. By default, this will be populated to the result of rpm -E %{_host_vendor}.</description>
        </parameter>
        <parameter>
          <name>triggers</name>
          <type>java.util.List</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The list of triggers to take place on installation of other packages.
 &lt;triggers&gt;
     &lt;installTrigger&gt;
         &lt;subpackage&gt;optional&lt;/subpackage&gt;
         &lt;program&gt;program to execute (if not shell) optional&lt;/program&gt;
         &lt;script&gt;actual contents of script - optional&lt;/script&gt;
         &lt;scriptFile&gt;location of file containing script - optional&lt;/script&gt;
         &lt;fileEncoding&gt;character encoding for script file - recommended&lt;/fileEncoding&gt;
         &lt;triggers&gt;
             &lt;trigger&gt;package/version to trigger on (i.e. jre &gt; 1.5)&lt;/trigger&gt;
             ...
         &lt;/triggers&gt;
     &lt;/installTrigger&gt;
     &lt;removeTrigger&gt;
         ...
     &lt;/removeTrigger&gt;
     &lt;postRemoveTrigger&gt;
         ...
     &lt;/postRemoveTrigger&gt;
     ...
 &lt;/triggers&gt;
</description>
        </parameter>
        <parameter>
          <name>url</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>A URL for the vendor.</description>
        </parameter>
        <parameter>
          <name>vendor</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The vendor supplying the package.</description>
        </parameter>
        <parameter>
          <name>verifyScriptlet</name>
          <type>org.codehaus.mojo.rpm.Scriptlet</type>
          <since>2.0-beta-4</since>
          <required>false</required>
          <editable>true</editable>
          <description>The verify scriptlet.</description>
        </parameter>
        <parameter>
          <name>versionProperty</name>
          <type>java.lang.String</type>
          <since>2.1-alpha-2</since>
          <required>true</required>
          <editable>true</editable>
          <description>The system property to read the calculated version from, normally set by the version mojo.</description>
        </parameter>
        <parameter>
          <name>workarea</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The area for RPM to use for building the package.
NOTE: The absolute path to the workarea MUST NOT have a space in any of the directory names.
Beginning with release 2.0-beta-3, sub-directories will be created within the workarea for each execution of the plugin within a life cycle.
The pattern will be workarea/name[-classifier].
The classifier portion is only applicable for the attached-rpm goal.
</description>
        </parameter>
      </parameters>
      <configuration>
        <autoProvides implementation="boolean" default-value="true"/>
        <autoRequires implementation="boolean" default-value="true"/>
        <description implementation="java.lang.String">${project.description}</description>
        <escapeString implementation="java.lang.String">${maven.rpm.escapeString}</escapeString>
        <keyname implementation="java.lang.String">${gpg.keyname}</keyname>
        <name implementation="java.lang.String">${project.artifactId}</name>
        <packager implementation="java.lang.String">${project.organization.name}</packager>
        <projversion implementation="java.lang.String">${project.version}</projversion>
        <releaseProperty implementation="java.lang.String" default-value="rpm.release"/>
        <summary implementation="java.lang.String">${project.name}</summary>
        <url implementation="java.lang.String">${project.organization.url}</url>
        <vendor implementation="java.lang.String">${project.organization.name}</vendor>
        <versionProperty implementation="java.lang.String" default-value="rpm.version"/>
        <workarea implementation="java.io.File" default-value="${project.build.directory}/rpm"/>
      </configuration>
    </mojo>
    <mojo>
      <goal>version</goal>
      <description>Makes the rpm version and release attributes available as properties.</description>
      <requiresDirectInvocation>false</requiresDirectInvocation>
      <requiresProject>true</requiresProject>
      <requiresReports>false</requiresReports>
      <aggregator>false</aggregator>
      <requiresOnline>false</requiresOnline>
      <inheritedByDefault>true</inheritedByDefault>
      <phase>initialize</phase>
      <implementation>org.codehaus.mojo.rpm.VersionMojo</implementation>
      <language>java</language>
      <instantiationStrategy>per-lookup</instantiationStrategy>
      <executionStrategy>once-per-session</executionStrategy>
      <since>2.0</since>
      <threadSafe>true</threadSafe>
      <parameters>
        <parameter>
          <name>projversion</name>
          <alias>version</alias>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The version portion of the RPM file name.</description>
        </parameter>
        <parameter>
          <name>release</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>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 &apos;-&apos; in the modifier will be replaced with &apos;_&apos;.
-	If a modifier exists and does not end with SNAPSHOT, &apos;_1&apos; will be appended to end.


</description>
        </parameter>
        <parameter>
          <name>releaseProperty</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The system property to set the calculated release to.</description>
        </parameter>
        <parameter>
          <name>versionProperty</name>
          <type>java.lang.String</type>
          <required>true</required>
          <editable>true</editable>
          <description>The system property to set the calculated version to.</description>
        </parameter>
      </parameters>
      <configuration>
        <projversion implementation="java.lang.String">${project.version}</projversion>
        <releaseProperty implementation="java.lang.String" default-value="rpm.release"/>
        <versionProperty implementation="java.lang.String" default-value="rpm.version"/>
      </configuration>
    </mojo>
  </mojos>
</plugin>
New to GrepCode? Check out our FAQ X