How to Build RPM of a maven project to be installed on remote systems

12,669

If you don't know anything about building RPMs or you want an all-Maven method, you should try the RPM plugin.

If you want to construct the RPM yourself, you can use the Shade plugin which will let you mush all your code and dependencies into a single JAR, making it trivial to package. (But you may not be able to distribute this outside your organization, depending on copyrights.)

Finally, if you want to keep your jars separate, you can use the Dependency plugin to list all dependencies and do all the packaging yourself from scratch.

None of these suggestions includes RPM dependencies, because there generally aren't RPMs of Java libraries. You'll depend on some version of Java, of course, but otherwise your RPM will probably have to hold all your dependencies.

Share:
12,669
Admin
Author by

Admin

Updated on June 27, 2022

Comments

  • Admin
    Admin almost 2 years

    I have build a maven project of inventory management on restlet framework and i use MYSQL. Now I need to build a RPM of it so that it works on even remote systems by just installing the RPM