How to unpackage and repackage a WAR file

The Solution to How to unpackage and repackage a WAR file is


you can update your war from the command line using java commands as mentioned here:

jar -uvf test.war yourclassesdir 

Other useful commands:

Command to unzip/explode the war file

jar -xvf test.war

Command to create the war file

jar -cvf test.war yourclassesdir 

Eg:

jar -cvf test.war *
jar -cvf test.war WEB-INF META-INF

~ Answered on 2013-10-09 10:53:12


Most Viewed Questions: