[ http://jira.codehaus.org/browse/MJAR-39?page=comments#action_67458 ] 

Jochen Wiedmann commented on MJAR-39:
-------------------------------------

Steve, I can confirm that I can reproduce the problem with maven 2.0.4 and your 
second zip file.

I have checked, and maven 2.0.4 is indeed using plexus-archiver-1.0-alpha-3, 
which *does* add carriage returns and line feeds to the manifest value, thus 
producing invalid manifest entries. The plexus-archiver doesn't, as of 
1.0-alpha-4.

I have also verified, that version 2.1-SNAPSHOT of the maven-jar-plugin uses 
version 2.0.1 of the maven-archiver, which in turn uses 
plexus-archiver-1.0-alpha-4. In other words, the problem can be fixed by adding

    <version>2.1-SNAPSHOT</version>

to the maven-jar-plugins configuration. (Which I have verified successfully.)

I recommend, that this issue be closed, which I cannot do.


> Maven Sets Manifest Attribute Values to Multi-Line Strings
> ----------------------------------------------------------
>
>          Key: MJAR-39
>          URL: http://jira.codehaus.org/browse/MJAR-39
>      Project: Maven 2.x Jar Plugin
>         Type: Bug

>     Versions: 2.0
>  Environment: Maven version: 2.0.4
> Microsoft Windows XP [Version 5.1.2600]
>     Reporter: Steven Coco
>  Attachments: Jar Specification-Title Tester.zip, MJAR-39.patch, Multiline 
> Manifest Value Bug Tester 2.zip
>
>
>      Maven will set a Manifest attribute's value to a multi-line string, 
> which results in an invalid Manifest.
>      By default, on its own, Maven adds a Specification-Title attribute to 
> the Manifest, and sets its value to the POM's <description> element.  If this 
> is a multi-line value in the POM, Maven will insert it unchanged: and yield 
> an invalid Manifest.  Maven then can't even load the jar that it just created 
> itself!
>      I have filed another bug relating to the fact that it should not insert 
> such an attribute by default: MJAR-38

-- 
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

Reply via email to