6

有没有人有一个示例如何使用Maven Javadoc 插件sourceFileExcludes中的元素?我尝试了以下方法,但无法使其正常工作:

<sourceFileExcludes>
    <sourceFileExclude>**/internal/*</sourceFileExclude>
    <sourceFileExclude>**/Model/*</sourceFileExclude>
</sourceFileExcludes>
4

2 回答 2

2

您是否指定了 excludePackageNames,因为您应该使用它们而不是您编写的文档。

<excludePackageNames>*.internal:org.acme.exclude1.*:org.acme.exclude2</excludePackageNames>

这似乎更合适。

于 2012-11-20T07:24:33.250 回答
0

它目前可能无法正常工作。插件问题跟踪器中记录了错误 - MJAVADOC-365

于 2014-10-06T19:54:34.610 回答