Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.19
-
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
- https://stackoverflow.com/questions/52326318/maven-javadoc-search-redirects-to-undefined-url
- https://github.com/crawler-commons/crawler-commons/pull/380
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
- links to