Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2969

Javadoc: Javascript search is not working when built on JDK 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.19
    • 1.19
    • build, documentation
    • None
    • Patch Available

    Description

      Newer Java versions create a nice Javascript-backed search box on the Javadocs. When built on JDK 11 clicking on search results leads to 404 results with a /undefined/ path element in the URL. This is caused by JDK-8215291 - Nutch does not use Java modules.

      The issue can be solved by adding --no-module-directories as argument to the javadoc command. However, this only works for JDK 11 and will break the javadoc build for later JDK versions, see JDK-8215582.

      See also

      Notes:

      • seen while preparing a release candidate for 1.19 (will quickly commit the solution)
      • adding --no-module-directories should be conditional for JDK 11 only
        • ant: see condition
        • gradle:
          if (JavaVersion.current().isJava11()) {
            options.addBooleanOption("-no-module-directories", true)
          }
          

      Attachments

        Issue Links

          Activity

            People

              snagel Sebastian Nagel
              snagel Sebastian Nagel
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: