Javadoc fails if footer contains newlines
-----------------------------------------
Key: MJAVADOC-133
URL: http://jira.codehaus.org/browse/MJAVADOC-133
Project: Maven 2.x Javadoc Plugin
Issue Type: Bug
Affects Versions: 2.2
Environment: Windows XP, java 1.6 u1
Reporter: Francois Fernandes
The current version of the javadoc plugin fails if the footer specified for the
project contains newline characters:
{code:xml}
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<excludePackageNames>*.internal*</excludePackageNames>
<footer>
<![CDATA[
<table border="0"
cellpadding="0">
<tr><td><img
src="[EMAIL PROTECTED]/icon.gif" width="32" /></td><td> All rights
reserved.</td></tr></table>
]]>
</footer>
</configuration>
</plugin>
{code}
The resulting output is as follows:
[INFO] Error while creating archive:Exit code: 1 - javadoc: error - Illegal
package name: "<tr><td><img"
javadoc: error - Illegal package name: "src="
javadoc: error - Illegal package name: "[EMAIL PROTECTED]/icon.gif"
javadoc: error - Illegal package name: "width="
javadoc: error - Illegal package name: "32"
javadoc: error - Illegal package name: "/></td><td>Copyright"
javadoc: error - Illegal package name: "&"
{noformat}
{noformat}
--
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