使用7Zip制作WAR文件

发布于 2025-01-05 10:54:06 字数 99 浏览 2 评论 0原文

我知道您可以获取 WAR 文件或 EAR 并使用 7Zip 或其他归档实用程序将其解压缩。但这个过程是相反的吗? 7Zip 可以使用其 GUI 管理器创建有效的 WAR 工件吗?耳朵?

I know you can take a WAR file or EAR and unzip it using 7Zip or other archiving utilities. But does this process work in reverse? Can 7Zip create a valid WAR artifact using it's GUI manager? EAR?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木槿暧夏七纪年 2025-01-12 10:54:06

war 文件是一个具有特殊用途的 jar,维基百科告诉我们:

他们还可以使用 zip 工具来执行此操作;但是,压缩时 zip 文件头中的条目顺序很重要,因为清单通常需要放在第一位。

据我了解,从技术角度来看,您可以使用 7zip,但您可能必须确保首先添加清单文件。

A war file is a jar with a special purpose and wikipedia tells us:

They can also use zip tools to do so; however, the order of entries in the zip file headers is important when compressing, as the manifest often needs to be first.

So to my understanding, you can use 7zip from a technical perspective but you may have to make sure, that you add the manifest file(s) first.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文