Back to the basics: Creating a SPEC file from a Maven project


1) Build the package with the provided pom.xml:

$ mvn package

2) Rebuild the RPM structure:

$ mvn -DskipTests=true rpm:rpm

A structure like the following will be created:

/target/rpm/<app_name>/BUILD
/target/rpm/<app_name>/RPMS
/target/rpm/<app_name>/SOURCES
/target/rpm/<app_name>/SPECS
/target/rpm/<app_name>/SRPMS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s