Maven-javadoc-plugin中的sourceFileExcludes标记 [英] sourceFileExcludes tag in the maven-javadoc-plugin

查看:243
本文介绍了Maven-javadoc-plugin中的sourceFileExcludes标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人在 Maven Javadoc中使用sourceFileExcludes元素的示例插件?我已经尝试了以下方法,但无法使其正常工作:

Does anyone has an example how to use the sourceFileExcludes element in the Maven Javadoc Plugin? I've tried the following, but cannot get it to work:

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

推荐答案

您是否已指定

Have you specified excludePackageNames, cause based on the docs you should use them instead of what you've written.

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

这似乎更合适.

这篇关于Maven-javadoc-plugin中的sourceFileExcludes标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆