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

javadoc generated by helpmojo goal of maven-plugin-plugin produces build failures

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      In our project we use the helpmojo goal of the maven-plugin-plugin to generate a HelpMojo class.
      Unfortunately the maven-javadoc-plugin fails to process that generated file because the generated javadoc comments contain the illegal symbol '<'.

      Here is the error message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:jar (attach-javadocs) on project codegen-maven-plugin: MavenReportException: Error while generating Javadoc:
      [ERROR] Exit code: 1 - D:\eclipse\codegen\codegen-maven-plugin\target\generated-sources\plugin\de\chrlembeck\codegen\HelpMojo.java:354: error: malformed HTML
      [ERROR]      * @throws NegativeArraySizeException if <code>indent < 0</code>
      [ERROR]                                                           ^
      

      And this is the generated output, that fails:

          /**
           * Splits the specified text into lines of convenient display length.
           *
           * @param text       The text to split into lines, must not be <code>null</code>.
           * @param indent     The base indentation level of each line, must not be negative.
           * @param indentSize The size of each indentation, must not be negative.
           * @param lineLength The length of the line, must not be negative.
           * @return The sequence of display lines, never <code>null</code>.
           * @throws NegativeArraySizeException if <code>indent < 0</code>
           */
          private static List<String> toLines( String text, int indent, int indentSize, int lineLength )
      

      Attachments

        Activity

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

          People

            rfscholte Robert Scholte
            chrlembeck Christoph Lembeck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment