You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2026/07/30 09:39:31 UTC
(maven-compiler-plugin) branch master updated: Document implicitly compiled excluded sources. This is a port of 8d3d6acb09c5a73272c165c6e8a9c53099707296 from 3.x.
This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new e96d819 Document implicitly compiled excluded sources. This is a port of 8d3d6acb09c5a73272c165c6e8a9c53099707296 from 3.x.
e96d819 is described below
commit e96d81920c4227dc03382aa94bf252ce95d1af29
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Wed Jul 29 16:12:02 2026 +0200
Document implicitly compiled excluded sources.
This is a port of 8d3d6acb09c5a73272c165c6e8a9c53099707296 from 3.x.
---
src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java | 5 +++++
src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java
index 306ac59..31c5a86 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java
@@ -83,6 +83,11 @@ public class CompilerMojo extends AbstractCompilerMojo {
/**
* A set of exclusion filters for the compiler.
+ * Excluding a source file only prevents the plugin from passing it explicitly to the compiler.
+ * The compiler may still find it on the source path and generate a class file for it.
+ * This can happen with {@code module-info.java}.
+ *
+ * @see #implicit
*/
@Parameter
protected Set<String> excludes;
diff --git a/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
index 1cdc336..b983b67 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
@@ -80,8 +80,12 @@ public class TestCompilerMojo extends AbstractCompilerMojo {
/**
* A set of exclusion filters for the compiler.
+ * Excluding a source file only prevents the plugin from passing it explicitly to the compiler.
+ * The compiler may still find it on the source path and generate a class file for it.
+ * This can happen with {@code module-info.java}.
*
* @see CompilerMojo#excludes
+ * @see #implicit
*/
@Parameter
protected Set<String> testExcludes;