Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.8
-
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
--------------------------
Issue Links
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | maven-1415-testcase.zip [ 12753 ] |
| Affects Version/s | 1.0 [ 10830 ] | |
| Key | MAVEN-1415 |
|
| Project | maven [ 10030 ] | maven-jar-plugin [ 10362 ] |
| Affects Version/s | 1.5 [ 10778 ] |
| Attachment | jartest.zip [ 12820 ] |
| Attachment | patch.txt [ 13142 ] |
| Fix Version/s | 1.8 [ 11767 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Lukas Theussl [ lukas ] |
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