Noooooooooo! try
<testResources> <testResource> <directory>src/test/resources/META-INF</directory> <filtering>true</filtering> </testResource> ... </testResources> On Tue, Sep 16, 2008 at 4:58 PM, Ryan de Laplante <[EMAIL PROTECTED]> wrote: > I found the solution: > > <resource> > <directory>src/test/resources/META-INF</directory> > <filtering>true</filtering> > <targetPath>../test-classes/META-INF</targetPath> > </resource> > > > Thanks, > Ryan > > > Ryan de Laplante wrote: > >> Hi, >> >> I have a src/test/resources/META-INF/jdbc.properties file that is only >> ever used in my unit tests. There is no such file in >> src/main/resources/META-INF/. I've configured profiles in my POM for >> development (default) and continuous integration server. I've added the >> following to my build section: >> >> <resources> >> <resource> >> <directory>src/test/resources/META-INF</directory> >> <filtering>true</filtering> >> </resource> >> </resources> >> >> ...and filtering works. However, it ends up putting the filtered file in >> /target/classes/jdbc.properties, and copies an unfiltered version of the >> file to /target/test-classes/jdbc.properties >> >> >> How can I tell Maven2 that I want the filtered file to end up in >> /target/test-classes instead? >> >> >> Thanks, >> Ryan >> >> --------------------------------------------------------------------- >> 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] > >
