File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments