Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
  <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.0-beta-2</version>
  <goalPrefix>rpm</goalPrefix>
  <isolatedRealm>false</isolatedRealm>
  <inheritedByDefault>true</inheritedByDefault>
  <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>
      <parameters>
        <parameter>
          <name>artifact</name>
          <type>org.apache.maven.artifact.Artifact</type>
          <required>true</required>
          <editable>false</editable>
          <description>The primary project artifact.</description>
        </parameter>
        <parameter>
          <name>attachedArtifacts</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>Auxillary project artifacts.</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>clean</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The clean script.</description>
        </parameter>
        <parameter>
          <name>cleanScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the clean script.</description>
        </parameter>
        <parameter>
          <name>conflicts</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of conflicts for this package.</description>
        </parameter>
        <parameter>
          <name>copyright</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The one-line copyright information.</description>
        </parameter>
        <parameter>
          <name>defaultDirmode</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default directory mode (octal string) to assign to directories when installed.&lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; populated.</description>
        </parameter>
        <parameter>
          <name>defaultFilemode</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default file mode (octal string) to assign to files when installed. &lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; populated.</description>
        </parameter>
        <parameter>
          <name>defaultGroupname</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default group name for files when installed.&lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; populated.</description>
        </parameter>
        <parameter>
          <name>defaultUsername</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default user name for files when installed.&lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; 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>distribution</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The distribution containing this package.</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>install</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The installation script.</description>
        </parameter>
        <parameter>
          <name>installScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the installation script.</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. Note that due to RPM limitations, this always requires input
from the terminal even if the key has no passphrase.</description>
        </parameter>
        <parameter>
          <name>mappings</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>true</editable>
          <description>The list of file &lt;a href=&quot;map-params.html&quot;&gt;mappings&lt;/a&gt;.</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 &lt;i&gt;noarch&lt;/i&gt;.
&lt;p&gt;
For passivity purposes, a value of &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt; will indicate whether the
architecture of the build machine will be used. Any other value (such as &lt;tt&gt;x86_64&lt;/tt&gt;) will set the
architecture of the rpm to &lt;tt&gt;x86_64&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;
This can also be used in conjunction with &lt;a href=&quot;source-params.html#targetArchitecture&quot;&gt;Source
targetArchitecture&lt;/a&gt; to flex the contents of the rpm based on the architecture.
&lt;/p&gt;</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>postinstall</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The post-installation script.</description>
        </parameter>
        <parameter>
          <name>postinstallScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the post-installation script.</description>
        </parameter>
        <parameter>
          <name>postremove</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The post-removal script.</description>
        </parameter>
        <parameter>
          <name>postremoveScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the post-removal script.</description>
        </parameter>
        <parameter>
          <name>prefix</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The relocation prefix for this package.</description>
        </parameter>
        <parameter>
          <name>preinstall</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-installation script.</description>
        </parameter>
        <parameter>
          <name>preinstallScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the pre-installation script.</description>
        </parameter>
        <parameter>
          <name>preremove</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-removal script.</description>
        </parameter>
        <parameter>
          <name>preremoveScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the pre-removal script.
protected</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description></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.List</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.
&lt;p&gt;
Beginning with 2.0-beta-2, this is an optional parameter. By default, the release will be generated from the
modifier portion of the &lt;a href=&quot;#projversion&quot;&gt;project version&lt;/a&gt; using the following rules:
&lt;ul&gt;
&lt;li&gt;If no modifier exists, the release will be &lt;code&gt;1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If the modifier ends with &lt;i&gt;SNAPSHOT&lt;/i&gt;, the timestamp (in UTC) of the build will be appended to end.&lt;/li&gt;
&lt;li&gt;All instances of &lt;code&gt;&apos;-&apos;&lt;/code&gt; in the modifier will be replaced with &lt;code&gt;&apos;_&apos;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If a modifier exists and does not end with &lt;i&gt;SNAPSHOT&lt;/i&gt;, &lt;code&gt;&quot;_1&quot;&lt;/code&gt; will be appended to end.&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;</description>
        </parameter>
        <parameter>
          <name>requires</name>
          <type>java.util.List</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>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>verify</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The verification script.</description>
        </parameter>
        <parameter>
          <name>verifyScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the verification script.</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.</description>
        </parameter>
      </parameters>
      <configuration>
        <summary implementation="java.lang.String">${project.name}</summary>
        <packager implementation="java.lang.String">${project.organization.name}</packager>
        <artifact implementation="org.apache.maven.artifact.Artifact">${project.artifact}</artifact>
        <vendor implementation="java.lang.String">${project.organization.name}</vendor>
        <description implementation="java.lang.String">${project.description}</description>
        <attachedArtifacts implementation="java.util.List">${project.attachedArtifacts}</attachedArtifacts>
        <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
        <url implementation="java.lang.String">${project.organization.url}</url>
        <workarea implementation="java.io.File">${project.build.directory}/rpm</workarea>
        <name implementation="java.lang.String">${project.artifactId}</name>
        <keyname implementation="java.lang.String">${gpg.keyname}</keyname>
        <projversion implementation="java.lang.String">${project.version}</projversion>
      </configuration>
      <requirements>
        <requirement>
          <role>org.apache.maven.project.MavenProjectHelper</role>
          <field-name>mavenProjectHelper</field-name>
        </requirement>
        <requirement>
          <role>org.codehaus.plexus.archiver.Archiver</role>
          <role-hint>dir</role-hint>
          <field-name>copier</field-name>
        </requirement>
      </requirements>
    </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>
      <parameters>
        <parameter>
          <name>artifact</name>
          <type>org.apache.maven.artifact.Artifact</type>
          <required>true</required>
          <editable>false</editable>
          <description>The primary project artifact.</description>
        </parameter>
        <parameter>
          <name>attachedArtifacts</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>false</editable>
          <description>Auxillary project artifacts.</description>
        </parameter>
        <parameter>
          <name>clean</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The clean script.</description>
        </parameter>
        <parameter>
          <name>cleanScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the clean script.</description>
        </parameter>
        <parameter>
          <name>conflicts</name>
          <type>java.util.List</type>
          <required>false</required>
          <editable>true</editable>
          <description>The list of conflicts for this package.</description>
        </parameter>
        <parameter>
          <name>copyright</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The one-line copyright information.</description>
        </parameter>
        <parameter>
          <name>defaultDirmode</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default directory mode (octal string) to assign to directories when installed.&lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; populated.</description>
        </parameter>
        <parameter>
          <name>defaultFilemode</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default file mode (octal string) to assign to files when installed. &lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; populated.</description>
        </parameter>
        <parameter>
          <name>defaultGroupname</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default group name for files when installed.&lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; populated.</description>
        </parameter>
        <parameter>
          <name>defaultUsername</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The default user name for files when installed.&lt;br/&gt;

Only applicable to a &lt;a href=&quot;map-params.html&quot;&gt;Mapping&lt;/a&gt; if &lt;a href=&quot;map-params.html#filemode&quot;&gt;filemode&lt;/a&gt;,
&lt;a href=&quot;map-params.html#username&quot;&gt;username&lt;/a&gt;, AND &lt;a href=&quot;map-params.html#groupname&quot;&gt;groupname&lt;/a&gt;
are &lt;b&gt;NOT&lt;/b&gt; 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>distribution</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The distribution containing this package.</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>install</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The installation script.</description>
        </parameter>
        <parameter>
          <name>installScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the installation script.</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. Note that due to RPM limitations, this always requires input
from the terminal even if the key has no passphrase.</description>
        </parameter>
        <parameter>
          <name>mappings</name>
          <type>java.util.List</type>
          <required>true</required>
          <editable>true</editable>
          <description>The list of file &lt;a href=&quot;map-params.html&quot;&gt;mappings&lt;/a&gt;.</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 &lt;i&gt;noarch&lt;/i&gt;.
&lt;p&gt;
For passivity purposes, a value of &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt; will indicate whether the
architecture of the build machine will be used. Any other value (such as &lt;tt&gt;x86_64&lt;/tt&gt;) will set the
architecture of the rpm to &lt;tt&gt;x86_64&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;
This can also be used in conjunction with &lt;a href=&quot;source-params.html#targetArchitecture&quot;&gt;Source
targetArchitecture&lt;/a&gt; to flex the contents of the rpm based on the architecture.
&lt;/p&gt;</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>postinstall</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The post-installation script.</description>
        </parameter>
        <parameter>
          <name>postinstallScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the post-installation script.</description>
        </parameter>
        <parameter>
          <name>postremove</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The post-removal script.</description>
        </parameter>
        <parameter>
          <name>postremoveScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the post-removal script.</description>
        </parameter>
        <parameter>
          <name>prefix</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The relocation prefix for this package.</description>
        </parameter>
        <parameter>
          <name>preinstall</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-installation script.</description>
        </parameter>
        <parameter>
          <name>preinstallScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the pre-installation script.</description>
        </parameter>
        <parameter>
          <name>preremove</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The pre-removal script.</description>
        </parameter>
        <parameter>
          <name>preremoveScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the pre-removal script.
protected</description>
        </parameter>
        <parameter>
          <name>project</name>
          <type>org.apache.maven.project.MavenProject</type>
          <required>true</required>
          <editable>false</editable>
          <description></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.List</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.
&lt;p&gt;
Beginning with 2.0-beta-2, this is an optional parameter. By default, the release will be generated from the
modifier portion of the &lt;a href=&quot;#projversion&quot;&gt;project version&lt;/a&gt; using the following rules:
&lt;ul&gt;
&lt;li&gt;If no modifier exists, the release will be &lt;code&gt;1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If the modifier ends with &lt;i&gt;SNAPSHOT&lt;/i&gt;, the timestamp (in UTC) of the build will be appended to end.&lt;/li&gt;
&lt;li&gt;All instances of &lt;code&gt;&apos;-&apos;&lt;/code&gt; in the modifier will be replaced with &lt;code&gt;&apos;_&apos;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If a modifier exists and does not end with &lt;i&gt;SNAPSHOT&lt;/i&gt;, &lt;code&gt;&quot;_1&quot;&lt;/code&gt; will be appended to end.&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;</description>
        </parameter>
        <parameter>
          <name>requires</name>
          <type>java.util.List</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>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>verify</name>
          <type>java.lang.String</type>
          <required>false</required>
          <editable>true</editable>
          <description>The verification script.</description>
        </parameter>
        <parameter>
          <name>verifyScript</name>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>The location of the verification script.</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.</description>
        </parameter>
      </parameters>
      <configuration>
        <summary implementation="java.lang.String">${project.name}</summary>
        <packager implementation="java.lang.String">${project.organization.name}</packager>
        <artifact implementation="org.apache.maven.artifact.Artifact">${project.artifact}</artifact>
        <vendor implementation="java.lang.String">${project.organization.name}</vendor>
        <description implementation="java.lang.String">${project.description}</description>
        <attachedArtifacts implementation="java.util.List">${project.attachedArtifacts}</attachedArtifacts>
        <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
        <url implementation="java.lang.String">${project.organization.url}</url>
        <workarea implementation="java.io.File">${project.build.directory}/rpm</workarea>
        <name implementation="java.lang.String">${project.artifactId}</name>
        <keyname implementation="java.lang.String">${gpg.keyname}</keyname>
        <projversion implementation="java.lang.String">${project.version}</projversion>
      </configuration>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.archiver.Archiver</role>
          <role-hint>dir</role-hint>
          <field-name>copier</field-name>
        </requirement>
      </requirements>
    </mojo>
    <mojo>
      <goal>help</goal>
      <description>Display help information on rpm-maven-plugin. Call &lt;pre&gt; mvn rpm:help -Ddetail=true -Dgoal=&amp;lt;goal-name&amp;gt;&lt;/pre&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>
      <parameters>
        <parameter>
          <name>detail</name>
          <type>boolean</type>
          <required>false</required>
          <editable>true</editable>
          <description>If &lt;code&gt;true&lt;/code&gt;, 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.</description>
        </parameter>
        <parameter>
          <name>lineLength</name>
          <type>int</type>
          <required>false</required>
          <editable>true</editable>
          <description>The maximum length of a display line.</description>
        </parameter>
      </parameters>
      <configuration>
        <goal implementation="java.lang.String">${goal}</goal>
        <lineLength implementation="int" default-value="80">${lineLength}</lineLength>
        <indentSize implementation="int" default-value="2">${indentSize}</indentSize>
        <detail implementation="boolean" default-value="false">${detail}</detail>
      </configuration>
    </mojo>
  </mojos>
  <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-archiver</artifactId>
      <type>jar</type>
      <version>1.0-alpha-5</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-container-default</artifactId>
      <type>jar</type>
      <version>1.0-alpha-8</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <type>jar</type>
      <version>1.5.7</version>
    </dependency>
    <dependency>
      <groupId>classworlds</groupId>
      <artifactId>classworlds</artifactId>
      <type>jar</type>
      <version>1.1-alpha-2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-project</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-profile</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-model</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact-manager</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-repository-metadata</artifactId>
      <type>jar</type>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.wagon</groupId>
      <artifactId>wagon-provider-api</artifactId>
      <type>jar</type>
      <version>1.0-alpha-5</version>
    </dependency>
  </dependencies>
</plugin>
New to GrepCode? Check out our FAQ X