简体   繁体   中英

How to build rpm from war

I have been reading about building rpm from war files & use them for installation. As part of it I downloaded sample war and trying to create rpm. My tomcat version is 7.0. I ran rpmdev-setuptree which creates the directory hierarchy needed for rpm build. 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. Can I accomplish it? or rather I would like to know, is this the correct way of using rpm build from the war? Or am I missing something?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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