maven javadoc-overviewsummay.html未更新
我有一个项目maven javadoc-overviewsummay.html未更新,java,maven-2,Java,Maven 2,我有一个项目 Proj +ModuleA src main java overview.html pom.xml +ModuleB pom.xml pom.xml 我正在尝试为这些模块生成javadoc。我想在overview Summary.html中添加overview.html。我已经将overview.html放在moduleA/src/main下,但它没有更新overview摘要页面 <plugin>
Proj
+ModuleA
src
main
java
overview.html
pom.xml
+ModuleB
pom.xml
pom.xml
我正在尝试为这些模块生成javadoc。我想在overview Summary.html中添加overview.html。我已经将overview.html放在moduleA/src/main下,但它没有更新overview摘要页面
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<stylesheetfile>javadoc.css</stylesheetfile>
<overview>${basedir}\moduleA\src\main\overview.html</overview>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<show>private</show>
</configuration>
</execution>
</executions>
</plugin>
org.apache.maven.plugins
,我觉得一切都很好。我的路径有什么问题吗?我可以使用下面的配置来解决这个问题
<overview>${project.build.sourceDirectory}/overview.html</overview>
${project.build.sourceDirectory}/overview.html
我们将不得不使用${project.build.sourceDirectory},${basedir}似乎不起作用。将overview.html放在/src/main/java目录下。
如果是多模块项目,请将overview.html放在模块的任何源目录下(即src/main/java)。我建议不要在Maven中使用反斜杠。没错。但在纠正后,它似乎不起作用。根据文档,插件在overview.html中查找标记,并将内容放入overview Summary.html中。但不确定它出了什么问题。在修改了pom.xml
之后,您已经完成了mvn干净编译javadoc:javadoc
?看起来问题在于相对路径,如果我给出完整路径,它就可以工作,但如果我给出${basedir}/moduleA/src/main/overview.html,它就不工作了