maven-javadoc-plugin:如何告诉Maven仅从指定的软件包下载javadocs?

时间:2018-07-25 08:32:23

标签: java maven javadoc maven-javadoc-plugin spring-auto-restdocs

当我使用 maven-javadoc-plugin 的标志includeDependencySourcesdependencySourceInclude(请参阅manual)将来自特定程序包的javadocs包含到我的项目中时,例如:

<configuration>
    <includeDependencySources>true</includeDependencySources>
    <dependencySourceIncludes>
        <dependencySourceInclude>my.project:*</dependencySourceInclude>
    </dependencySourceIncludes>
</configuration>

然后Maven从项目的 all 依赖项中下载 all (!)javadocs。这需要很多时间(

(幸运的是,Maven仅将指定的javadocs包括到项目中...)

有人知道如何告诉Maven避免下载所有javadocs并仅下载指定的文档(my.project:*)吗?

(我使用maven-javadoc-plugin v3.0.0)

0 个答案:

没有答案