Generate Javadoc HTML using maven?

Maven 3Maven Javadoc-Plugin

Maven 3 Problem Overview


Right now I am using the maven-javadoc-plugin to attach the Javadoc to .jar artifacts when I am doing a release.

However, how can I generate the Javadoc in an html format so we can scp it to a remote server for reference?

Thanks!

Maven 3 Solutions


Solution 1 - Maven 3

Using the same plugin, you can generate javadoc in a folder using

mvn javadoc:javadoc

It puts the help content under target/site/apidocs

You can change the output folder by using the plugin configuration parameter reportOutputDirectory

Please refer to:

Solution 2 - Maven 3

if you are interested in just doing it raw, you could use the following command.

javadoc -d C:/javadoc/test com.mypackage

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSam LevinView Question on Stackoverflow
Solution 1 - Maven 3krishnakumarpView Answer on Stackoverflow
Solution 2 - Maven 3Vinod BhanView Answer on Stackoverflow