Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-286

Version 2.7 in Maven Reactor may cause infinite recursion, symptoms similar to MJAVADOC-268

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.8
    • Labels:
      None
    • Environment:
    • Flags:
      Patch

      Description

      The getModulesLinks() method is unacceptably slow under certain conditions:
      1. project's url is defined
      2. one or more projects in reactor do not have any java sources and are not of "pom" packaging.
      For such projects the apidocs/ output folder is never created resulting in repeated invokation of a forked javadoc goal. It's more severe with high number of modules in reactor and high number of modules without any java sources.

      as an example checkout "hg clone https://hg.kenai.com/hg/forceten~src"

      The immediate problem is in the apidocsFile.exists() condition that re-triggers the forked invokation. The attached patch fixes that. However it looks suspicitions that the method is being called repeatedly for each module at all. Maybe the aborting condition at the start of the method body is wrong (I was not able to decypher that)

      workaround is to use 2.5 or not to specify the url in pom.xml or set the detectOfflineLinks parameter to "false".

      1. MJAVADOC-286.diff
        4 kB
        Hervé Boutemy

        Issue Links

          Activity

          Parag Mehta created issue -
          Hervé Boutemy made changes -
          Field Original Value New Value
          Link This issue relates to MJAVADOC-284 [ MJAVADOC-284 ]
          Hervé Boutemy made changes -
          Link This issue relates to MJAVADOC-268 [ MJAVADOC-268 ]
          Hervé Boutemy made changes -
          Attachment MJAVADOC-286.diff [ 52984 ]
          Hervé Boutemy made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 2.8 [ 16433 ]
          Fix Version/s 2.6.1 [ 14533 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 11:56:47 UTC 2015 [ 1428235007093 ]
          Mark Thomas made changes -
          Workflow jira [ 12722522 ] Default workflow, editable Closed status [ 12762377 ]
          Mark Thomas made changes -
          Flags Patch [ 10430 ]
          Patch Submitted Yes [ 10763 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:11:46 UTC 2015 [ 1428279106587 ]
          Mark Thomas made changes -
          Workflow jira [ 12959981 ] Default workflow, editable Closed status [ 12996871 ]

            People

            • Assignee:
              Siveton Vincent
              Reporter:
              Parag Mehta
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development