I have multimodule project
Proj
+ModuleA
src
main
java
overview.html
pom.xml
+ModuleB
pom.xml
pom.xml
I’m trying to generate javadoc for these module. I want to add overview.html in overviewsummary.html. I’ve place overview.html under moduleA/src/main but it’s not updating the overview summary page.
<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>
I looked at the documentation http://docs.oracle.com/javase/6/docs/tooldocs/windows/javadoc.html#overview, everything looks fine to me. Is there anything wrong with my path ?
I could solve this problem by using below configuration
We will have to use ${project.build.sourceDirectory}, ${basedir} doesn’t seem to be working. Place the overview.html under /src/main/java directory.
In case of multi module project also, place the overview.html under any of the module’s source directory (i.e src/main/java).