Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2
-
None
-
None
-
Windows XP, java 1.6 u1
Description
The current version of the javadoc plugin fails if the footer specified for the project contains newline characters:
<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="{@docRoot}/icon.gif" width="32" /></td><td> All rights reserved.</td></tr></table> ]]> </footer> </configuration> </plugin>
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: "
/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: "&"