Redline is a pure Java library for manipulating RPM Package Manager packages. Currently the project supports reading and creating packages and has an included Ant task useful for integration with build systems.
More information is available at the Redline website
To use Redline include it as a Maven dependency:
<dependency> <groupId>org.redline-rpm</groupId> <artifactId>redline</artifactId> <version>1.2.1</version> </dependency>
Redline can also be downloaded directly from GitHub