Skip to content

Commit 55218ae

Browse files
committed
Improve documentation of new parameter for source path exclusion
1 parent 1a30702 commit 55218ae

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGeneratorMojo.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,21 @@ public class DescriptorGeneratorMojo extends AbstractGeneratorMojo {
141141
* that use annotations or documentation in an uncontrollable format that may conflict with the parsing
142142
* rules we utilise.
143143
*
144+
* <p>Note that this only accepts <strong>source roots</strong>. It will not accept
145+
* specific paths within a source root (e.g. specific packages). In this context, a source root
146+
* would be considered to be a directory holding a full Java package structure which can be
147+
* passed directly to {@code javac} for compilation, or {@code javadoc} for documentation.
148+
*
149+
* <p>As an example, the following configuration will prevent this goal scanning any
150+
* generated sources from annotation processors:
151+
*
152+
* <pre>{@code
153+
* <excludedScanDirectories>
154+
* <excludedScanDirectory>${project.build.directory}/generated-sources/annotations</excludedScanDirectory>
155+
* <excludedScanDirectory>${project.build.directory}/generated-test-sources/annotations</excludedScanDirectory>
156+
* </excludedScanDirectories>
157+
* }</pre>
158+
*
144159
* @since TBC
145160
*/
146161
@Parameter

0 commit comments

Comments
 (0)