java 将单个 JAR 文件正确打包为 RPM
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1508762/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Packaging a single JAR file as an RPM properly
提问by Sunil Kumar Sahoo
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.
我已经成功创建了一个 Java JAR 文件。我现在想将我的 JAR 文件打包为 RPM(RedHat 包管理器),以便我可以将它安装到 Linux。
What would be the proper way to package a single JAR file as an RPM?
将单个 JAR 文件打包为 RPM 的正确方法是什么?
回答by Robert Munteanu
If you're using Maven there's the maven rpm plugin.
如果您使用的是 Maven,则可以使用 Maven rpm 插件。

