maven - groovy-eclipse-compiler Excludes and Includes not working -


i using groovy-eclipse-compiler , trying include , exclude directories under src/main/groovy directory; default (without filters) compiler includes everything, filter works when exclude groovy files in source path.

exclude filter works: works build output directory

            <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>3.1</version>             <configuration>                 <source>1.7</source>                 <target>1.7</target>                 <!-- <compilerargument>${compilerargs}</compilerargument> <executable>${java_home}/bin/javac</executable> -->                 <showdeprecation>true</showdeprecation>                 <encoding>utf8</encoding>                 <compilerid>groovy-eclipse-compiler</compilerid>                 <excludes>                     <exclude>**/*.groovy</exclude>                 </excludes>             </configuration>             <dependencies>                 <dependency>                     <groupid>org.codehaus.groovy</groupid>                     <artifactid>groovy-eclipse-compiler</artifactid>                     <version>2.8.0-01</version>                 </dependency>                 <dependency>                     <groupid>org.codehaus.groovy</groupid>                     <artifactid>groovy-eclipse-batch</artifactid>                     <version>2.1.5-03</version>                 </dependency>                 <dependency>                     <groupid>log4j</groupid>                     <artifactid>log4j</artifactid>                     <version>1.2.16</version>                     <scope>runtime</scope>                 </dependency>             </dependencies>         </plugin> 

combination of include , excludes: not work build output directory

            <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>3.1</version>             <configuration>                 <source>1.7</source>                 <target>1.7</target>                 <!-- <compilerargument>${compilerargs}</compilerargument> <executable>${java_home}/bin/javac</executable> -->                 <showdeprecation>true</showdeprecation>                 <encoding>utf8</encoding>                 <compilerid>groovy-eclipse-compiler</compilerid>                 <excludes>                     <exclude>src/main/groovy/controller/**/*.groovy</exclude>                     <exclude>src/main/groovy/transformer/listing/**/*.groovy</exclude>                 </excludes>                 <includes>                     <include>src/main/groovy/transformer/utils/**/*.groovy</include>                 </includes>             </configuration>             <dependencies>                 <dependency>                     <groupid>org.codehaus.groovy</groupid>                     <artifactid>groovy-eclipse-compiler</artifactid>                     <version>2.8.0-01</version>                 </dependency>                 <dependency>                     <groupid>org.codehaus.groovy</groupid>                     <artifactid>groovy-eclipse-batch</artifactid>                     <version>2.1.5-03</version>                 </dependency>                 <dependency>                     <groupid>log4j</groupid>                     <artifactid>log4j</artifactid>                     <version>1.2.16</version>                     <scope>runtime</scope>                 </dependency>             </dependencies>         </plugin> 

relevant .classpath file data

pom.xml plugins section


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -