Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-292

HelpMojo contains malformed HTML which causes javadoc to fail under JDK 8

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5
    • None
    • None

    Description

      Hi,
      the generated Help-Mojo Class contains malformed HTML which causes the generation of javadoc to fail under JDK 8. This is not reproducible with older Java versions (I suspect that oracle has deployed some more strict validation here).

      error output is:

      /fooBar/target/generated-sources/plugin/com/example/helpmojo/HelpMojo.java:311: error: malformed HTML

      • @throws NegativeArraySizeException if <code>repeat < 0</code>
        ^
        /fooBar/target/generated-sources/plugin/com/example/helpmojo/HelpMojo.java:350: error: malformed HTML
      • @throws NegativeArraySizeException if <code>indent < 0</code>
        ^

      Command line was: /usr/lib/jvm/java-8-oracle/jre/../bin/javadoc @options @packages
      [....]

      using the following configuration:

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-plugin-plugin</artifactId>
      <version>3.4</version>
      <dependencies>
      <dependency>
      <groupId>org.apache.maven.plugin-tools</groupId>
      <artifactId>maven-plugin-tools-ant</artifactId>
      <version>3.4</version>
      </dependency>
      </dependencies>
      <executions>
      <execution>
      <id>default-descriptor</id>
      <goals>
      <goal>descriptor</goal>
      </goals>
      <phase>process-classes</phase>
      </execution>
      <execution>
      <id>generated-helpmojo</id>
      <goals>
      <goal>helpmojo</goal>
      </goals>
      <configuration>
      <goalPrefix>myPrefix</goalPrefix>
      <helpPackageName>com.example.helpmojo</helpPackageName>
      </configuration>
      </execution>
      </executions>
      </plugin>

      and the following java / maven versions:

      $ java -version
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

      $ mvn --version
      Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
      Maven home: /usr/share/maven-3.2.3
      Java version: 1.8.0_60, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-8-oracle/jre
      Default locale: de_DE, platform encoding: UTF-8
      OS name: "linux", version: "3.16.0-33-generic", arch: "amd64", family: "unix"

      If a demo project for this is required let me know.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rfscholte Robert Scholte
            TheSnoozer S L
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment