testResources files get copied to the testOutputDirectory. Using surefire, the testOutputDirecotry files should take precedence.
-- Eric Redmond http://blog.propellors.net On 8/8/07, Ryan Moquin <[EMAIL PROTECTED]> wrote: > > If I have this in my pom: > > .... > <build> > <resources> > <resource> > <directory>src/main/resources</directory> > </resource> > </resources> > <testResources> > <testResource> > <directory>/src/test/resources</directory> > </testResource> > </testResources> > </build> > .... > > If I have a file such as hibernate.cfg.xml in both locations, but with > different parameters... which one will take precedence during unit tests? > From I can see, it seems like only the one in the src/main/resources takes > effect. > > Do you have to do anything specific to make this work how I would expect? > > Thanks. >