[ http://jira.codehaus.org/browse/MNG-2542?page=comments#action_73790 ] Brett Porter commented on MNG-2542: -----------------------------------
I think it was won't fixed because the bug was opened in plexus-archiver, but unfortunately wasn't linked. I'm certain this is either fixed or filed somewhere else, but I'll leave this open for verification. > Remove carriage returns and tabs from field values in the manifest file > ----------------------------------------------------------------------- > > Key: MNG-2542 > URL: http://jira.codehaus.org/browse/MNG-2542 > Project: Maven 2 > Issue Type: Bug > Affects Versions: 2.0.4 > Reporter: Tim O'Brien > > When creating a JAR Manfiest, maven needs to remove CR and Tabs from the > description taken from the POM. > This is a critical issue with JAR files created from Maven. The issue is > that Maven can create a MANIFEST file for a JAR, but it creates an invalid > manifest if you jsut happen to have a description in your POM like thi: > <description> > this is an library for idiots > </description> > The issue is that your description element has new line characters and thejar > plugin just take those new line characters and blindly copies them into the > Manfiest, creating an invalid Manifest. This doesn't show up until you try > to use the JAR in another application. Then you get a very cryptic error > message about having an invalid jar. > This used to be 1247 but it was closed and marked as Won't Fix with no > explanation as to why it isn't worth fixing. -- 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
