Yes sorry you're right in fact this works.

Thanks for your help.
Marc.

Edelson, Justin a écrit :
> Hmm. That works for me. If you run mvn -X, do you see that the exclude is 
> being passed to the resources plugin? Should look something like this:
>  
> [DEBUG]   (f) resources = [Resource {targetPath: null, filtering: false, 
> FileSet {directory: YOUR_PROJECT_DIRECTORY\src\main\resources, PatternSet 
> [includes: {}, excludes: {**/faces-config.xml}]}}]
> 
> ________________________________
> 
> From: Marc Schneider [mailto:[EMAIL PROTECTED]
> Sent: Thu 9/4/2008 10:27 AM
> To: Maven Users List
> Subject: Re: Excluding a file in resources when compiling
> 
> 
> 
> Thanks for your answer.
> 
> So I add this in the build section :
> 
> <resources>
>         <resource>
>                 <directory>src/main/resources</directory>
>                 <excludes>
>                         <exclude>**/faces-config.xml</exclude>
>                 </excludes>
>         </resource>
> </resources>
> 
> but after mvn clean compile, I still can see the faces-config.xml file
> in the classes directory.
> 
> I don't understand why.
> 
> Marc.
> 
> Edelson, Justin a écrit :
>> Resources aren't "compiled". See 
>> http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
>>  for information on how to exclude resource files.
>>
>> Justin
>>
>> ________________________________
>>
>> From: Marc Schneider [mailto:[EMAIL PROTECTED]
>> Sent: Thu 9/4/2008 9:07 AM
>> To: Maven Users List
>> Subject: Excluding a file in resources when compiling
>>
>>
>>
>> Hello,
>>
>> I have this file : src/main/resources/faces-config.xml
>>
>> After mvn clean compile this file is put at the root of the classes
>> directory.
>>
>> But I don't want that, so I tried :
>>
>> <plugin>
>>         <groupId>org.apache.maven.plugins</groupId>
>>         <artifactId>maven-compiler-plugin</artifactId>
>>         <configuration>
>>                 <source>1.6</source>
>>                 <target>1.4</target>
>>                 <encoding>UTF-8</encoding>
>>                 <excludes>
>>                         <exclude>**/faces-config.xml</exclude>
>>                 </excludes>
>>         </configuration>
>> </plugin>
>>
>> But this doesn't work.
>> Looking at the trace of maven however I can see :
>> (f) excludes = [**/src/main/resources/*]
>>
>> So I don't understand. Could somebody help ?
>>
>> Thanks,
>> Marc.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to