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!
In the Package Explorer view, select a Java project and click Project > Generate Javadoc with Diagrams > Automatically. In the Generate Javadoc wizard, under Javadoc command, select the Javadoc command (an executable file).
In Netbeans, you can instruct Maven to check javadoc on every project open : Tools | Options | Java icon | Maven tab | Dependencies category | Check Javadoc drop down set to Every Project Open . Close and reopen Netbeans and you will see Maven download javadocs in the status bar.
To view an HTML documentation file, open your web browser and specify the file name of the javadoc you want to view, taken from the classdocs directory. Any of the following files are good for getting started: classdocs/AllNames. html.
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:
if you are interested in just doing it raw, you could use the following command.
javadoc -d C:/javadoc/test com.mypackage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With