You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "wolfgang haefelinger (JIRA)" <ji...@codehaus.org> on 2008/07/25 14:23:26 UTC

[jira] Commented: (MPJAR-36) Jar plugin generate incorrect manifest file

    [ http://jira.codehaus.org/browse/MPJAR-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143135#action_143135 ] 

wolfgang haefelinger commented on MPJAR-36:
-------------------------------------------

It appears, that there is now no way in Maven 1.1 to add a entry to the Main section. This does not make sense. Of course, Maven should create a "correct" Manifest file. However, why having an opinion about explicitly adding something to the Main section? This patch needs to be improved to allow for attributes in the Main section as well. 

> Jar plugin generate incorrect manifest file
> -------------------------------------------
>
>                 Key: MPJAR-36
>                 URL: http://jira.codehaus.org/browse/MPJAR-36
>             Project: Maven 1.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Eugene Kuleshov
>            Assignee: Lukas Theussl
>            Priority: Critical
>             Fix For: 1.8
>
>         Attachments: jartest.zip, maven-1415-testcase.zip, patch.txt
>
>
> 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
> --------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira