Ok,
so the exclude on configuration level, just excludes which .class
files you want to add to the war?
I even tried
<configuration>
<excludes>
<exclude>**/*.class</exclude>
</excludes>
</configuration>
and still, all the classes are in my WEB-INF/classes directory.
And is it also possible to exclude them from being build. I've read
something about the following configuration (it was for jars)
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/NotNeeded*.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
but that also not work. What do I do wrong?
kind regards
Jan
2008/7/11 Jörg Schaible <[EMAIL PROTECTED]>:
> Jan Verstuyft wrote:
>> Thanks for the quick response.
>>
>> I've tried the following:
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-war-plugin</artifactId>
>> <version>2.0</version>
>> <configuration>
>> <excludes>
>>
>> <exclude>**/com/ideal/**/*.java</exclude>
>> </excludes>
>> <webResources>...</webResources>
>> </configuration>
>> </plugin>
>> </plugins>
>>
>> And some other exclude masks like **/com/ideal/**, or **/com/ideal/*
>> but it seems that they still are compiled.
>> What is the mask I need to use?
>
> Well, I told you. Have a look yourself at target/classes and search for any
> *.java file ... ;-)
>
> - Jörg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]