You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Crocker (JIRA)" <ji...@codehaus.org> on 2008/10/20 20:36:19 UTC

[jira] Commented: (MJAVADOC-107) unknown error: "invalid header field"

    [ http://jira.codehaus.org/browse/MJAVADOC-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151393#action_151393 ] 

Mark Crocker commented on MJAVADOC-107:
---------------------------------------

I had a similar problem that was related to the existence of carriage returns and tab characters in the <description> element in the pom.xml file.  The content of this element gets copied by the jar plugin to the Specification-Title: field in the MANIFEST.MF with some strange wrapping.  Putting the entire contents of the <description> element on a single line seems to solve the problem.

This work-around should not be required. The Maven XML parser should "do the right thing" with whitespace and not include the leading tabs in the description entry.

Using the encoding element in the configurations section of the resources plugin, as suggested by on posting, did not help.

> unknown error: "invalid header field"
> -------------------------------------
>
>                 Key: MJAVADOC-107
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-107
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: windows, maven 2.04
>            Reporter: Jörg Hohwiller
>            Assignee: Carlos Sanchez
>
> When I create the javadoc of one of my modules, I get the error blow - but I do not have a clue whats wrong.
> I tried a clean and rebuild but nothing changed. Exception messages from maven do not seem to enlighten me.
> What header field? A header field of the prompted jar file?
> Caused by: org.apache.maven.reporting.MavenReportException: Exit code: 1 - error: error reading C:\WINDOWS\Profiles\hohwille\.m2\repository\net\sf\mmm\mmm-uit-swt\0.9.0-SNAPSHOT\mmm-uit-swt-0.9.0-SNAPSHOT.jar; invalid header field
>         at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:845)
>         at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:104)
>         at org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:166)
>         ... 18 more

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