6

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>
Joshua Taylor
  • 84,998
  • 9
  • 154
  • 353
Peter
  • 73
  • 3

2 Answers2

2

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.

khmarbaise
  • 92,914
  • 28
  • 189
  • 235
  • Actually I want to use sourceFileExcludes tag to exclude the specific classes.like com/example/internal/Test1 com/example/Model/Test2, is that possible. Thanks – Peter Nov 20 '12 at 16:29
  • @khmarbaise I read the documentation that you posted, but I'm not sure why excludePackageNames would be preferable (unless subpackage or subpackages are specified, in which case they're ignored). Can you clarify at all? – Joshua Taylor Sep 11 '13 at 20:57
0

It might just not be working at the moment. There is bug logged in the plugin issue tracker - MJAVADOC-365

Hardy
  • 18,659
  • 3
  • 49
  • 65