Can I use the maven javadoc plugin (version 2.7) excludePackageNames attribute to exclude a package but not its subpackages? -


I have a set of sections for which I am creating Jawadock, some of which I am not published out of Want to do The structure is as follows:

  com.company.package.classA com.company.package.classB com.company.package.subpackage.classC com.company.package.subpackage.classD   

I want to exclude all classes in the "package" and to include all sections in the "subpages". Settings:

  & amp; ExcludePackageNames & gt; Com.company.package & lt; / ExcludePackageNames & gt;   

does not include all subpages beneath the package.

Besides restructuring the code, is there any way to do this?

You can use it to do for you.

This version is supported from version 2.7 and above.

Example:

  & lt; Plugin & gt; & Lt; ArtifactId & gt; Maven-Javadoc-plugin & lt; / ArtifactId> & Lt; Version & gt; 2.8.1 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Javadoc-Jar & lt; / Id & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Jar & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt ;! - Switch to dependent driven aggregation - & gt; & Lt; IncludeDependencySources & gt; True & lt; / IncludeDependencySources & gt; & Lt; DependencySourceExcludes & gt; & Lt ;! - Except only Commons-CII artifacts - & gt; & Lt; DependencySourceExclude & gt; Commons-CLI: * & lt; / DependencySourceExclude & gt; & Lt; / DependencySourceExcludes & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt;   


& lt; Configuration & gt; & Lt ;! - Switch to dependent driven aggregation - & gt; & Lt; IncludeDependencySources & gt; True & lt; / IncludeDependencySources & gt; & Lt; DependencySourceIncludes & gt; & Lt ;! - I only control dependence - & gt; & Lt; DependencySourceInclude & gt; Org.test.dep: * & lt; / DependencySourceInclude & gt; & Lt; / DependencySourceIncludes & gt; & Lt; / Configuration & gt;

Comments