[ https://issues.apache.org/jira/browse/MCOMPILER-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17505234#comment-17505234 ]
Václav Haisman edited comment on MCOMPILER-347 at 3/12/22, 10:37 AM: --------------------------------------------------------------------- [~olamy] This issue is that AbstractCompilerMojo does not seem to be passing all of the compiler configuration into the compiler plugin. The linked PR seems to fix that. Passing the includes/excludes down to the compiler plugin would fix problems with filtering of file in Eclipse compiler plugin as well. was (Author: wilx): [~olamy] This issue is that AbstractCompilerMojo does not seem to be passing all of the compiler configuration into the compiler plugin. The linked PR seems to fix that. Passing the includes/excludes down to the compiler plugin would fix problems in with filtering of file in Eclipse compiler plugin as well. > Includes and excludes not passed into CompilerConfiguration > ----------------------------------------------------------- > > Key: MCOMPILER-347 > URL: https://issues.apache.org/jira/browse/MCOMPILER-347 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.5 > Reporter: zhangchang > Assignee: Olivier Lamy > Priority: Major > > Some groovy script is only for runtime excute, other source need compile for > test. > So I set exclude in maven-compiler-plugin tag, but it not work. > {code:java} > <build> > ... > <plugins> > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.5</version> > <configuration> > <compilerId>groovy-eclipse-compiler</compilerId> > <excludes> > <exclude>**/rest/*</exclude> > </excludes> > </configuration> > <dependencies> > <dependency> > <groupId>org.codehaus.groovy</groupId> > <artifactId>groovy-eclipse-compiler</artifactId> > <version>2.9.2-01</version> > </dependency> > <dependency> > <groupId>org.codehaus.groovy</groupId> > <artifactId>groovy-eclipse-batch</artifactId> > <version>2.4.3-01</version> > </dependency> > </dependencies> > </plugin> > </plugins> > ... > </build> > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)