Maven RPM builder

The Maven RPM builder is a small Apache Maven plugin which I wrote. It allows you to create an RPM file during a Maven build in plain Java. There already is a Maven RPM plugin available, however it does make use of the rpm binary. So it does require you to have a running version of RPM on your local build system. The Maven RPM builder however uses an RPM implementation in pure Java and thus allows you to create RPM files without the need to have the rpm binary. This makes it easier to build on platforms like Mac OS, Windows or Linux distributions which don’t use RPM.

Currently the plugins allows to create RPM files with content coming from the Maven build and allows provides support for creating a simple YUM repository. There is support for Unix file system permissions, directories, large files, dependencies. RPM metadata is by default taken from the Maven metadata, bit it can of course also be overridden
using the Maven POM file.

Be sure to check out the documentation page, as it provides much more information including a few examples on how to assembly your RPM files properly.

This plugin is open source and you are welcome to make comments or provide bug fixes and feature enhancements. This work is based on my other project Eclipse Package Drone. It provides the core functionality of reading and writing RPM files in plain Java. If you are interested in a programmatic way of creating or reading RPM files in Java, check this out as well.

Maven coordinates

Here are the Maven coordinates to the plugin, be sure to replace the version with the most recent (or version of your choice).

  <version><!-- version --></version>

See also