简体   繁体   English

从多模块Maven项目中收集Javadocs

[英]Gathering javadocs from multimodule maven project

In a large maven multimodule context, 在大型Maven多模块环境中,

how can I gather javadoc-comments programmatically for a specific set of classes (eg all classes implementing some interface) or modules ? 如何以编程方式收集一组特定类(例如,实现某个接口的所有类)或模块的javadoc-comments?

I have tried a stupid doclet and looked at QDox , but neither seems to do the job well. 我尝试了一个愚蠢的doclet并查看了QDox ,但似乎都做得不好。

Actually I think this should be simple if done correctly. 实际上,我认为如果正确完成,这应该很简单。

Specifically, I do not know how to do this in a maven-build: How can I depend on and use the src-jars? 具体来说,我不知道如何在Maven构建中执行此操作:如何依赖和使用src-jars?

This should be possible with QDox, as long as you have the sources. 只要有了源,就可以使用QDox。 QDox-2.x can also read source-files from jars, which can be generated by the maven-source-plugin. QDox-2.x也可以从jar中读取源文件,这些文件可以由maven-source-plugin生成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM