* MANIFEST.MF 含义说明
META-INF 目录
大多数 JAR 文件包含一个 META-INF 目录,它用于存储包和扩展的配置数据,如安全性和版本信息。Java 2 平台识别并解释 META-INF 目录中的下述文件和目录,以便配置应用程序、扩展和类装载器:
MANIFEST.MF。这个 manifest 文件定义了与扩展和包相关的数据。
INDEX.LIST。 这个文件由 jar 工具的新选项 -i 生成,它包含在应用程序或者扩展中定义的包的位置信息。它是 JarIndex 实现的一部分,并由类装载器用于加速类装载过程。
xxx.SF。 这是 JAR 文件的签名文件。占位符 xxx标识了签名者。
xxx.DSA。 与签名文件相关联的签名程序块文件,它存储了用于签名 JAR 文件的公共签名。
case 1:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| Manifest-Version: 1.0 Created-By: Apache Ant 1.5.1 Extension-Name: Struts Framework Specification-Title: Struts Framework Specification-Vendor: Apache Software Foundation Specification-Version: 1.1 Implementation-Title: Struts Framework Implementation-Vendor: Apache Software Foundation Implementation-Vendor-Id: org.apache Implementation-Version: 1.1 Class-Path: commons-beanutils.jar commons-collections.jar commons-dig ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s truts-legacy.jar
|
case 2:
1 2 3 4
| Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.4 Created-By: 1.4.2_01-b06 (Sun Microsystems Inc.)
|
case 3:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Manifest-Version: 1.0 Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt Bundle-SymbolicName: org.apache.commons.codec Archiver-Version: Plexus Archiver Built-By: ggregory Bnd-LastModified: 1508251980440 Specification-Title: Apache Commons Codec Implementation-Vendor-Id: commons-codec Bundle-DocURL: http://commons.apache.org/proper/commons-codec/ Include-Resource: org/apache/commons/codec/language/bm/ash_approx_any. txt=src/main/resources/org/apache/commons/codec/language/bm/ash_appro Automatic-Module-Name: org.apache.commons.codec Implementation-Version: 1.11 Specification-Vendor: The Apache Software Foundation Bundle-ManifestVersion: 2 Bundle-Vendor: The Apache Software Foundation Tool: Bnd-3.0.0.201509101326 Implementation-Vendor: The Apache Software Foundation Bundle-Version: 1.11.0 Created-By: Apache Maven Bundle Plugin Build-Jdk: 1.8.0_144 Specification-Version: 1.11 Implementation-URL: http://commons.apache.org/proper/commons-codec/
|
name |
type |
description |
Manifest-Version: |
一般属性 |
定义manifest文件版本 |
Created-By: |
一般属性 |
定义该文件的生成者 |
Class-Path: |
一般属性 |
应用程序或者类装载器识别内部类的搜索路径 java -jar classpath |
Signature-Version: |
一般属性 |
定义该文件的签名版本 |
Extension-Name: |
扩展标识属性 |
定义改jar文件的标识 |
Specification-Title: |
包扩展属性 |
定义扩展规范的标题 |
Specification-Vendor: |
包扩展属性 |
定义维护该规范的组织 |
Specification-Version: |
包扩展属性 |
定义扩展规范的版本号 |
Implementation-Title: |
包扩展属性 |
定义了扩展实现的标题 |
Implementation-Vendor: |
包扩展属性 |
定义了扩展实现的组织名 |
Implementation-Vendor-Id: |
包扩展属性 |
定义了扩展实现的组织ID |