D
D
Denis Kuznetsov2020-08-05 16:22:23
Java
Denis Kuznetsov, 2020-08-05 16:22:23

How to return a war file to a java application?

Hello, it so happened that my project was deleted, but its war copy remained on the tomCat server. When the server starts, it functions. But there is a need to refine the project. Can I unpack a war archive into a maven project again? if yes how to do it please tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2020-08-05
@DennisKingsman

If the archive (war-file) is packed without sources, then only pass it back through the decompiler. You can unzip it with the jar utility. Actually, it is a simple zip archive.
You can decompile using java-decompiler.github.io
Well, an overview of decompilers https://javahungry.blogspot.com/2018/12/8-best-jav...
Yes, variable names will most likely be lost during decompilation. But it's better than nothing!
And yes, pom.xml will have to be redrawn!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question