Generate war file from tomcat webapp folder

前端 未结 4 1148
醉话见心
醉话见心 2020-12-12 13:06

I have a tomcat server working, and there I have a webapp folder my_web_app.

I didn\'t deploy the project; I only have that folder of that application (

4条回答
  •  死守一世寂寞
    2020-12-12 13:44

    Its just like creating a WAR file of your project, you can do it in several ways (from Eclipse, command line, maven).

    If you want to do from command line, the command is

    jar -cvf my_web_app.war * 
    

    Which means, "compress everything in this directory into a file named my_web_app.war" (c=create, v=verbose, f=file)

提交回复
热议问题