Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在我正在使用 maven-javadoc-plugin 在发布时将 Javadoc 附加到 .jar 工件。
但是,如何以 html 格式生成 Javadoc,以便我们可以将其 scp 到远程服务器以供参考?
谢谢!
使用相同的插件,您可以使用在文件夹中生成 javadoc
mvn javadoc:javadoc
它将帮助内容置于target/site/apidocs
target/site/apidocs
您可以使用插件配置参数更改输出文件夹reportOutputDirectory
reportOutputDirectory
请参阅:
如果您有兴趣只做原始操作,可以使用以下命令。
javadoc -d C:/javadoc/test com.mypackage