maven-javadoc
plug-in, which in-turn uses the javadoce.exe
command of bin directory to create the documents. After the completion of project deployment using mvn install
command, Maven Documents will be generated. Configuration of javadoc plug-in can be done in pom.xml as shown in the below example.
mvn install
command.
[xml]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
[/xml]
The output appears as follows.
Generated documents can be found in apidocs in target folder of JavaSamples project as follows.