Source: levelup.gitconnected.com

Build an RPM using Maven and Spring Boot

Category: Software

The goal of this article is to package a Spring Boot application as an RPM using the rpm-maven-plugin. We’ll not only cover the basics of creating the RPM, but include pre- and post-installation scripts to ensure you’re up and running and ready to get stuck in to build your own application.

Using this option allows you to run the jar directly, i.e. without java -jar, and just saves a little bit of configuration later when deploying the application using yum/rpm.

Now we are ready to do our test build of the Spring Boot application (jar) and package the application as an RPM ready for installation.

In this post we touched upon the technique for using the rpm-maven-plugin for building an RPM for a Spring Boot application and installing to a server.

Related Articles