I think it is necessary to:
a) file a request for an "additionalClasspathElements" field for the
plugin, and/or,
b) copy the file(s) to target/test-classes

- Brett

On 11/9/05, Pablo <[EMAIL PROTECTED]> wrote:
> Hi there
>
> I'm trying to perform several tests (StrutsTestCase) on my web
> application using M2.
> The StrutsTestCase requires /WEB-INF/web.xml to be in the classpath.
> When tests are run in a default way m2 says: The /WEB-INF/web.xml was
> not found.
> I've found one configuration parameter called "|classpathElements|" to
> be helpful (as its name suggests).
> However when I add this to the configuration:
> <plugin>
>   <configuration>
>     ..
>           <classpathElements>
>             <classpathElement>src/webapp</classpathElement>
>           </classpathElements>
>     ..
>   </configuration>
> </plugin>
> M2 writes the following message:
>
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-surefire-plugin. Reason: ERROR: Cannot
> override read-only parameter: classpathElements in goal: surefire:test
>
> Therefore I have a question. What should I set in pom.xml file to make
> StrutsTestCase's tests work?
>
> Thanks in advance
> Cheers
> Pablo
>
> ---------------------------------------------------------------------
> 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]

Reply via email to