Plugin Documentation

Goals available for this plugin:

Goal Description
rpm:help Display help information on rpm.
Call mvn rpm:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
rpm:rpm Build an RPM file
rpm:unpack Unpack a RPM file.

Limitations / Restrictions

  • Symbolic links are not supported, but details about them are written to debug log,
  • only directories and regular files are supported currently, partially due to Java Nio limitations,
  • POSIX file permissions can only be preserved if supported by file system. Otherwise just read/write will be set,
  • user ownership can only be preserved on POSIX and/or ACL file systems, as long as user exists and extracting user has suitable permissions (cmp. #preserveOwner),
  • group ownership can only be preserved on POSIX file systems, as long as group exists and extracting user has suitable permissions (cmp. #preserveOwner),
  • contained file names must be valid.

File Name Validation

File names are validated before unpacking and must satisfy the following conditions to be accepted. Any file name violating will result in abortion.

  • at most 256 characters in length,
  • must not contain "../" sequence,
  • printable characters excluding backslash, colon, wild card characters (* and ?) and shell special characters (<, > and |).
rpm:yum-repository Build a YUM repository

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.3
JDK 1.8
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.dentrassi.maven</groupId>
          <artifactId>rpm</artifactId>
          <version>1.10.1</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.dentrassi.maven</groupId>
        <artifactId>rpm</artifactId>
        <version>1.10.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"