I have the plugin configured to pull in test classes and dependencies [1], however it doesn't seem to be pulling in my test dependencies. I am recieving a NoClassDefFoundError on the class from a test dependency, if I switch the dependency to a scope of compile, it works file. Any ideas?
[1] http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/run-mojo.html#useTestClasspath <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0-SNAPSHOT</version> <configuration> <useTestClasspath>true</useTestClasspath> <warSourceDirectory>${basedir}/src/test/webapp</warSourceDirectory> <ignorePackaging>true</ignorePackaging> </configuration> <executions> <execution> <id>tomcat-run</id> <goals> <goal>run</goal> </goals> <phase>pre-integration-test</phase> <configuration> <path>/</path> <fork>true</fork> <useTestClasspath>true</useTestClasspath> <warSourceDirectory>${basedir}/src/test/webapp</warSourceDirectory> <ignorePackaging>true</ignorePackaging> <port>${reserved.tomcat.port}</port> </configuration> </execution> <execution> <id>tomcat-shutdown</id> <goals> <goal>shutdown</goal> </goals> <phase>post-integration-test</phase> </execution> </executions> </plugin> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org