[
http://jira.codehaus.org/browse/MRESOURCES-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148831#action_148831
]
Olivier Lamy commented on MRESOURCES-58:
----------------------------------------
As in your pom there is
{code:xml}
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</resource>
{code}
The filtered result is in in target/classes and a non filtered file is in
target/test-classes.
You have to use
{code:xml}
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
{code}
> Filter not working on src/test/resources
> ----------------------------------------
>
> Key: MRESOURCES-58
> URL: http://jira.codehaus.org/browse/MRESOURCES-58
> Project: Maven 2.x Resources Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: OS: Linux (Ubuntu gutsy) 2.6.22-14-generic.
> Maven: 2.0.8
> Reporter: Lorand Somogyi
> Assignee: Olivier Lamy
> Fix For: 2.3
>
> Attachments: test.zip
>
>
> Filter does not work for test-resources.
> I tried:
> 1. No definition in pom.xml
> 2. Defining the resource in pom.xml
> In the attached really basic case the property comes from pom.xml property,
> but it does fail for filter file too. And even for default pom.xml variables
> too...
--
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