Foreign Packaging

We assume that the application is packaged as a fat JAR called "user-app.jar" for the sake of simplicity.

= Red Hat Package Manager =

RPM (Red Hat Package Manager) is the default package management system under Red Hat, Fedora, Mageia, Mandriva, OpenSUSE, ...

Platform dependent tools
The following tools only work under GNU Linux or other Unix platforms with native rpm support.

rpmbuild can be used to build RPMs. You can find more information about RPM packaging in the official documentation.

The build tool Ant can call this command when you use its RPM task. The build system Maven does the same with its RPM plugin.

Cross-platform tools
Redline RPM is a pure Java library for manipulating RPM packages. It can be use in command line, with Ant and with Maven.

Redline requires Apache Commons Compress, Bounty Castle and SLF4J.

Using a distinct namespace or a different task name is necessary to avoid any conflict with the build-in Ant RPM task when defining a task for Redline:

Then, you can call this Ant task:

= Debian Package Manager =