简体   繁体   English

如何从战争中提高转速

[英]How to build rpm from war

I have been reading about building rpm from war files & use them for installation. 我一直在阅读有关从war文件构建rpm并将其用于安装的信息。 As part of it I downloaded sample war and trying to create rpm. 作为其中的一部分,我下载了样例战争并尝试创建rpm。 My tomcat version is 7.0. 我的tomcat版本是7.0。 I ran rpmdev-setuptree which creates the directory hierarchy needed for rpm build. 我运行了rpmdev-setuptree,它创建了rpm构建所需的目录层次结构。 All I intend to do by installing the rpm is : stop tomcat, delete the sample.war & sample folder from webapps, copy new war to webapps & start tomcat. 通过安装rpm,我要做的就是:停止tomcat,从webapps中删除sample.war和sample文件夹,将新war复制到webapps中,然后启动tomcat。 Can I accomplish it? 我能做到吗? or rather I would like to know, is this the correct way of using rpm build from the war? 还是我想知道,这是从战争中使用rpm构建的正确方法吗? Or am I missing something? 还是我错过了什么?

如果您正在使用Maven,则可以使用RPM maven插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM