> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, August 12, 2007 3:05 PM
> To: [email protected]
> Subject: TestCase and resources in src/main/webapp

> this doesn't work as "src/main/webapp/" is not on the 
> classpath. Is there a 
> way to tell maven to have src/main/webapp on its classpath? 
> Or what else is 
> best practice to test resources in src/main/webapp?

There doesn't really seem to be a way to do what you want.  This problem has 
existed for some time and JIRA issues are open, but no fix seems to be 
forthcoming.  Supposedly, the correct way to configure surefire with the 
additional classpath is to add the following in the <configuration/> element:
    <classpathElements>
            <classpathElement>src/main/webapp</classpathElement
    </classpathElements>

This causes an exception to be thrown by the surefire plugin, however.  If you 
search the archives for other people trying to use strutstestcase, you'll find 
other instances of this problem.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to