[ https://issues.apache.org/jira/browse/NUTCH-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastian Nagel updated NUTCH-2969: ----------------------------------- Summary: Javadoc: Javascript search is not working when built on JDK 11 (was: Javadoc: Javascript search is working when built on JDK 11) > Javadoc: Javascript search is not working when built on JDK 11 > -------------------------------------------------------------- > > Key: NUTCH-2969 > URL: https://issues.apache.org/jira/browse/NUTCH-2969 > Project: Nutch > Issue Type: Bug > Components: build, documentation > Affects Versions: 1.19 > Reporter: Sebastian Nagel > Assignee: Sebastian Nagel > Priority: Major > Fix For: 1.19 > > > 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|https://bugs.openjdk.org/browse/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|https://bugs.openjdk.org/browse/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|https://ant.apache.org/manual/Tasks/condition.html] > -* gradle: > {noformat} > if (JavaVersion.current().isJava11()) { > options.addBooleanOption("-no-module-directories", true) > } > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)