Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-133

Javadoc fails if footer contains newlines

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.3
    • 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: "

      {@docRoot}

      /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: "&"

      
      

      Attachments

        1. options
          0.6 kB
        2. packages
          0.1 kB
        3. testcase.zip
          3 kB

        Activity

          People

            siveton Siveton Vincent
            crashedworld Francois Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: