I currently have a maven web project that I am attempting to write integration tests for. For the structure of the project, I\'ve defined test stubs under src/test/j
I believe the following configuration for the maven war plugin would do what you want. You copy your test-classes to your WEB-INF/classes folder. You can even filter those resources.
org.apache.maven.plugins
maven-war-plugin
generate-test-war
pre-integration-test
war
${basedir}/src/test/webapp
${project.artifactId}-test
${basedir}/target/${project.artifactId}-test
false
${basedir}/target/test-classes
WEB-INF/classes
See http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html