我用javadoc maven插件3.0.1和Java 9生成了javadoc.但是,当我使用新的搜索功能并选择一个类时,它会重定向到"找不到文件"...
有undefined在URL(如"../target/site/apidocs/undefined/com/mycompany/MyClass.html"),其中如果去掉,正确地加载网页.
你能帮我正确配置生成java doc(摆脱这个undefined),所以搜索能力加载html页面好吗?
<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>
Run Code Online (Sandbox Code Playgroud)