[ 
https://jira.codehaus.org/browse/MRESOURCES-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg closed MRESOURCES-138.
--------------------------------------

    Resolution: Not A Bug
    
> Single resource file filtering but the rest of the resources is not copied.
> ---------------------------------------------------------------------------
>
>                 Key: MRESOURCES-138
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-138
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.4.3
>         Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-27-generic", arch: "amd64", family: "unix"
> Tested also with Maven 2.2.1
>            Reporter: Karl Heinz Marbaise
>         Attachments: resource-test.tar.gz
>
>
> I have project where i have three files (a.properties, b.properties and 
> c.properties) in the src/main/resources folder.
> Now i have configured to filter a single file in my pom:
> {code}
>   <build>
>     <resources>
>       <resource>
>         <directory>${basedir}/src/main/resources</directory>
>         <filtering>true</filtering>
>         <includes>
>           <include>a.properties</include>
>         </includes>
>       </resource>
>     </resources>
>   ...
> {code}
> If i check my target/classes folder the other files b.properties and 
> c.properties are not being copied from the resources folder.
> This means the definition for filtering will be excluding automatically all 
> other files from the resources folder.
> I have checked that with different configuration like the following:
> {code}
>   <build>
>     <resources>
>       <resource>
>         <directory>${basedir}/src/main/resources</directory>
>         <filtering>true</filtering>
>         <includes>
>           <include>**/a.properties</include>
>         </includes>
>       </resource>
>     </resources>
>   ...
> {code}
> The only solution is to write the configuration as follows:
> {code}
>   <build>
>     <resources>
>       <resource>
>         <directory>${basedir}/src/main/resources</directory>
>         <filtering>true</filtering>
>         <includes>
>           <include>a.properties</include>
>         </includes>
>       </resource>
>       <resource>
>         <directory>${basedir}/src/main/resources</directory>
>         <filtering>false</filtering>
>         <includes>
>           <include>b.properties</include>
>           <include>c.properties</include>
>         </includes>
>       </resource>
>     </resources>
>   ...
> {code}
> In my opinion this is bug...I have attached simple example project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to