Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.8
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Current jar plugin genrate an invalid manifest file. In particular it is impossible to retrieve package version information for jars created by this plugin. See more details at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#JAR%20Manifest
Here is the example of current generated manifest file:
----------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: Apache Maven
Built-By: Administrator
Package: org.codehaus.activemq.jms.cci
Build-Jdk: 1.4.2_02
Class-Path: commons-logging-1.0.3.jar log4j-1.2.8.jar
Extension-Name: ra-jms
Specification-Title:
Specification-Vendor:
Implementation-Title: org.codehaus.activemq.jms.cci
Implementation-Vendor:
Implementation-Version: 0.0.2
----------
And this is about how it should look like instead:
------------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)
Class-path: commons-logging-1.0.3.jar log4j-1.2.8.jar
Name: org/codehaus/some/component/
Specification-Title: something
Specification-Vendor:
Specification-Version: 0.0.2
Implementation-Title: org.codehaus.activemq.jms.cci
Implementation-Vendor:
Implementation-Version: 0.0.2
--------------------------
Eugene,
Is there any tool or Java code that could be used to verify if a Jar file is complaint or not? That would make it much easier to test the fix.
Felipe