[ http://jira.codehaus.org/browse/MNG-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MNG-2542. ----------------------------- Assignee: Olivier Lamy Resolution: Fixed I close it because CR are now removed and tab is a legal value in a manifest value. Whatever I have added a unit for CR values in rev 604400. > 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 > Components: maven-archiver > Affects Versions: 2.0.4 > Reporter: Tim O'Brien > Assignee: Olivier Lamy > Fix For: Shared Components > > > 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