java - 为什么 MANIFEST.MF 文件包含有关打包在存档中的其他文件的信息?

标签 java manifest.mf

我仍然对为什么 MANIFEST.MF 文件包含有关打包在存档中的其他文件的信息感到困惑。我读过这个tutorial在 list 上,他们没有解释为什么它包含有关其他文件的信息。

最佳答案

报价为

The manifest can also contain information about the other files that are packaged in the archive. Exactly what file information should be recorded in the manifest depends on how you intend to use the JAR file. The default manifest makes no assumptions about what information it should record about other files.

重点是它不一定,但可能会。

例如,OSGi 存储有关包版本和依赖项的信息。

关于java - 为什么 MANIFEST.MF 文件包含有关打包在存档中的其他文件的信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20656687/

相关文章:

Powershell 模块 GUID

Java 图形用户界面 : button controls not Visible

java - 如何学习使用内容存储库和 Apache JackRabbit?

java - 我是否需要对 Web 服务请求调度程序 (Java) 进行单元测试?

maven - 如何为我现有的 maven 项目创建 list 文件

jar - 在没有 JRE 但使用 OpenSSL 的情况下签署 JAR?

java - 我应该使用报告框架吗?

Java Spring 下拉填充

java - URLClassLoader.addURL(URL) 是否遵循 META-INF/MANIFEST.MF

java - 支持 Java Compiler API 中的仅 list jar