`sbt package` 会产生巨大的 war 文件 - 如何使其更小?

发布于 2024-09-01 03:10:10 字数 115 浏览 3 评论 0原文

我目前正在使用 SBT 来管理我的 Lift 项目。我想部署它,但是当我运行“sbt package”时,它会生成一个 60MB 的 war 文件。这看起来相当大——有什么方法可以缩小尺寸吗?

谢谢!

I'm currently using SBT to manage my Lift project. I'd like to deploy it, but when I run 'sbt package' it produces a 60MB war file. This seems pretty large - are there ways I could cut down the size?

Thanks!

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

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

发布评论

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

评论(2

睫毛溺水了 2024-09-08 03:10:10

也许 ProGuard 可以提供帮助。

Perhaps ProGuard could help.

蓝海 2024-09-08 03:10:10

事实证明,这是因为“sbt package”遵循符号链接并将我的所有图像打包到 warfile 中。不管怎样,谢谢你的提示!

Turns out it was because 'sbt package' was following symlinks and packed all my images into the warfile. Thanks for the tip anyway!

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