**[Pavel_K](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pavel_k)** opened **[MCOMPILER-569](https://issues.apache.org/jira/browse/MCOMPILER-569?redirect=false)** and commented The following code must exclude maven-info file. ```java <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.11.0</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <excludes> <exclude>**/module-info.java</exclude> </excludes> </configuration> </plugin> ``` However, plugin compiles module-info and adds module-info.class to jar file --- **Affects:** 3.11.0
Activity
wilx commentedon Jul 28, 2026
The filter itself works. But
javacfinds the source via dir search and compiles it anyway. It can be prevented via<implicit>none</implicit>option.desruisseaux commentedon Jul 29, 2026
Is this issue specific to Compiler Plugin 3.x, or does it occurs also on 4.x?
wilx commentedon Jul 29, 2026
Since the behaviour is part of
javac, it does happen with 4.x m-c-p as well.desruisseaux commentedon Jul 29, 2026
So I guess that the fix would be to port #1092 to
master.wilx commentedon Jul 29, 2026
Yes.
[MCOMPILER-569] Document implicitly compiled excluded sources (#1092)
desruisseaux commentedon Jul 29, 2026
Closing since this issue is now covered by #1092 and #1095.