I tried this and also changing "exclude" to "excludes". No luck.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<exclude>src/main/java/com/sun/appserv/management/monitor/*.java</
exclude>
<exclude>src/main/java/com/sun/appserv/management/monitor/
statistics/*.java</exclude>
<compilerArgument>-Xlint:all</compilerArgument>
</configuration>
</plugin>
..............................................
Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish team, admin
On Aug 12, 2008, at 5:45 PM, Kin-man Chung wrote:
>
>
> Lloyd Chambers wrote:
>> 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>
>
> try
>
> <exclude>com/sun/appserv/management/monitor/*.java</exclude>
> <exclude>com/sun/appserv/management/monitor/statistics/*.java</
> exclude>
>
> -Kin-man
>
>> </excludes>
>> <compilerArgument>-Xlint:all</compilerArgument>
>> </configuration>
>> </plugin>
>> ...
>> </plugins>
>> </build>
>> ..............................................
>> Lloyd Chambers
>> lloyd.chambers_at_sun.com <mailto:lloyd.chambers_at_sun.com>
>> GlassFish team, admin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>