Maven Javadoc Search重定向到"/undefined/.".网址 [英] Maven javadoc Search redirects to "/undefined/.." url

查看:77
本文介绍了Maven Javadoc Search重定向到"/undefined/.".网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用javadoc maven插件3.0.1和Java 9生成了Javadoc.但是,当我使用新的Search功能并选择一个类时,它将重定向到找不到文件" ...

I have generated javadoc with javadoc maven plugin 3.0.1 and Java 9. However, when I use the new Search capability and pick a class, it redirects to "File not found"...

URL中有undefined(例如"../target/site/apidocs/undefined/com/mycompany/MyClass.html"),如果删除,则会正确加载页面.

There is undefined in the url (e.g. "../target/site/apidocs/undefined/com/mycompany/MyClass.html"), which if removed, loads the page correctly.

能否请您帮我进行正确的配置以生成Java文档(摆脱此undefined),以便搜索功能可以很好地加载html页面?

Could you please help me with the right configuration to generate java doc (get rid of this undefined), so the search capability load the html page fine?

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <version>${version.maven-javadoc-plugin}</version>
        <executions>
            <execution>
                <id>javadoc</id>
                <goals>
                    <goal>javadoc</goal>
                </goals>
                <phase>prepare-package</phase>
                <configuration>
                    <doclint>none</doclint>
                    <dependencySourceIncludes>
                       <dependencySourceInclude>com.some:some</dependencySourceInclude>
                    </dependencySourceIncludes>
                    <doctitle>Title - ${project.version}</doctitle>
                    <includeDependencySources>true</includeDependencySources>
                    <windowtitle>Title</windowtitle>
                </configuration>
            </execution>
        </executions>

推荐答案

借助Java doc maven插件配置中的以下选项,可以解决此问题

Got this working with the help of the following option in the java doc maven plugin configuration

<additionalJOption>--no-module-directories</additionalJOption>

这篇关于Maven Javadoc Search重定向到"/undefined/.".网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆