Issue Details (XML | Word | Printable)

Key: MJAR-4
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Mike Perham
Reporter: Gilles Scokart
Votes: 4
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Jar Plugin

Multiline description provides invalid header in the generated jar files

Created: 19/Dec/05 06:27 AM   Updated: 22/Aug/06 07:51 AM   Resolved: 22/Jun/06 06:53 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
dependent
 


 Description  « Hide

When a description text is written on more than 1 line, the produced Manifest files are invalid.

Indeed one of the header of this manifiest contains the description text as is. When the jar is loaded, we receive an error saying "invalid headers".



Jerome Lacoste added a comment - 15/May/06 03:26 AM

Can someone double check if this issue is closed for you? The root plexus issue was fixed some weeks ago.


Filippos Slavik added a comment - 05/Jun/06 06:46 AM

I can confirm that this very issue is still unresolved. I'm using a clean 2.0.4 maven installation.


Jerome Lacoste added a comment - 14/Jun/06 06:35 AM

But does maven 2.0.4 use the plexus library that contains the fix? I don't think so. On my machine mvn package uses

[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime (selected for runtime)

while the fix (PLX-185) made it in alpha-6

http://svn.plexus.codehaus.org/browse/plexus/trunk/plexus-components/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java

Can you try forcing the dependency to this version of the plexus-archiver and repeat your tests?


Jerome Lacoste added a comment - 22/Jun/06 06:16 PM

http://jira.codehaus.org/browse/MJAR-39#action_67458 seems to confirm my point. Should probably be closed...


Mike Perham added a comment - 22/Jun/06 06:53 PM

This appears to no longer be a problem. maven-archiver does not add specification and implementation entries by default any longer and MJAR-38 allows you to override their values anyhow.