Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packaging a single JAR file as an RPM properly

Tags:

java

linux

rpm

I've create a Java JAR file successfully. I now want to package my JAR file as an RPM (RedHat Package Manager) so that I can make it installable for Linux.

What would be the proper way to package a single JAR file as an RPM?

like image 580
Sunil Kumar Sahoo Avatar asked Oct 02 '09 10:10

Sunil Kumar Sahoo


People also ask

What is an RPM package file?

What is an RPM package? RPM stands for Red Hat Package Manager. It was developed by Red Hat and is primarily used on Red Hat-based Linux operating systems (Fedora, CentOS, RHEL, etc.). An RPM package uses the . rpm extension and is a bundle (a collection) of different files.

Can you create an RPM from an installed package?

Rpmerizor is a script that allows you to create an RPM package from installed files. You simply have to specify files on the command line and answering a few interactive questions to fill rpm meta-data (package name, version ...). You can also use it in batch mode with command line options for meta-data.

What is Jar packaging?

The Java™ Archive (JAR) file format enables you to bundle multiple files into a single archive file. Typically a JAR file contains the class files and auxiliary resources associated with applets and applications. The JAR file format provides many benefits: Security: You can digitally sign the contents of a JAR file.


1 Answers

If you're using Maven there's the maven rpm plugin.

like image 146
Robert Munteanu Avatar answered Oct 09 '22 04:10

Robert Munteanu