Similar to what Trent described...

We add src/main/webapp as a test resource in the parent pom of all our web
applications so we can render our view templates (Freemarker) via unit tests
-- very, very handy!

You could do something similar in your pom:

...
<build>
    ...
    <testResources>
      <testResource>
        <directory>src/main/config</directory>
      </testResource>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
    </testResources>
    ...
  </build>


HTH,
Doug

On Nov 27, 2007 10:16 AM, Trent Rosenbaum <[EMAIL PROTECTED]>
wrote:

> Hi Nathan,
>
> I had a similar issue when I wanted to run seam integration tests from
> within Maven.  I needed to add the web.xml file onto the classpath.
> In the end I configured up the maven antrun plugin to copy my seam
> configuration files to the test-classes directory under target.  I
> bound this plugin to run on one of the test lifecycle phases.  I was
> then able to run the tests as shown within the seam documentation.
>
> Trent
>
>
> On 27/11/2007, Silberman, Nathan <[EMAIL PROTECTED]> wrote:
> > Is there  away to add a resource or config folder to the surefire
> > classpath? I want to ensure that my src/main/config folder is on the
> > classpath but I cannot find any documentation that would support this
> > requirement
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to