Explode an EAR file
ear, jakarta-ee, jsf, war
Solution
Programmatically, or manually? EAR and WAR files, like JAR files, are really just ZIP files with a known internal file/folder structure. That means you can extract EARs and WARs like any other ZIP file, with code or with a desktop application.
Command line tool for windows would be great.
- A Java implementation that you could drop into an executable JAR very easily: https://stackoverflow.com/a/7108813/139010
- A bash script: https://unix.stackexchange.com/a/4372/4515
- And finally, if you don't mind using 7zip, a Windows-compatible script: https://superuser.com/a/248349/9232
Problem
My JSF Project is deployed as an EAR file. It includes some war files also. I need an exploded version of the EAR (including exploded inner WARs). Is there any tool to do it?