问题
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>
回答1:
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>
which seemed to be more approriate.
回答2:
It might just not be working at the moment. There is bug logged in the plugin issue tracker - MJAVADOC-365
来源:https://stackoverflow.com/questions/13465674/sourcefileexcludes-tag-in-the-maven-javadoc-plugin