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

John Casey closed MRESOURCES-79.
--------------------------------

      Assignee: John Casey
    Resolution: Fixed

Starting in 2.4, you'll be able to configure the resources and testResources 
mojos separately (using Maven 2.2.0+). When you use the default-resources and 
default-testResources executionIds to separate configuration specific to the 
two mojos, you can setup a new parameter introduced for this issue, called 
'extraFilters'. This parameter works the same way as the build/filters section 
in the main POM, by listing a series of properties file locations to be used 
during the mojo execution. These extraFilters will be PREPENDED to the filters 
list for that execution.

This allows the user to configure extraFilters separately for the two 
resources/testResources mojo executions, thereby filtering the two sets of 
resources individually.

> <resources> are filtered by test filters
> ----------------------------------------
>
>                 Key: MRESOURCES-79
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-79
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Maven 2.0.9, Java 1.6.0_07 OS_X
>            Reporter: nodje
>            Assignee: John Casey
>             Fix For: 2.4
>
>         Attachments: resources-testcase.zip
>
>
> With the following configuration I assume <resources> should get filtered by 
> src/main/filters/* and <testResources> by src/test/filters/* :
> <filters>
>             <filter>src/main/filters/dev.filter.properties</filter>
>             <filter>src/test/filters/dev.filter.properties</filter>
>         </filters>
>         <resources>
>             <resource>
>                 <directory>src/main/resources</directory>
>                 <filtering>true</filtering>
>             </resource>
>         </resources>
>         <testResources>
>             <testResource>
>                 <directory>src/test/resources</directory>
>                 <filtering>true</filtering>
>             </testResource>
>         </testResources>
> But all resources files end up being filtered by the src/test/filters/*.
> Attached is the simpliest Maven2 proect reproducing this behavior.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to