dev@glassfish.java.net

how to exclude java source files from compilation

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Tue, 12 Aug 2008 17:29:54 -0700

I want to exclude source files from compilation.

I've googled, read the maven docs include stuff at sonatype, and darn
it, I can't get the right syntax.

<build>
     <plugins>
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <configuration>
                <excludes>
                        <exclude>src/main/java/com/sun/appserv/management/monitor/*.java</
exclude>
                        <exclude>src/main/java/com/sun/appserv/management/monitor/
statistics/*.java</exclude>
                </excludes>
                 <compilerArgument>-Xlint:all</compilerArgument>
           </configuration>
         </plugin>
      ...
     </plugins>
</build>



..............................................
Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish team, admin