Can't add test scoped dependency filters to web.xml
---------------------------------------------------
Key: MTOMCAT-123
URL: https://issues.apache.org/jira/browse/MTOMCAT-123
Project: Apache Tomcat Maven Plugin
Issue Type: Bug
Components: tomcat7
Affects Versions: 2.0-beta-1, 2.0
Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600)
Maven home: /usr/local/Cellar/maven/3.0.3/libexec
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "i386", family: "mac"
Reporter: Nathan Schile
Assignee: Olivier Lamy
When a Filter that is from a test scoped dependency is added to the web.xml, a
ClassNotFoundException is thrown when starting the Tomcat server. Everything
runs fine when dependency is changed to compile.
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0-beta-1</version>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>run</goal>
</goals>
<phase>pre-integration-test</phase>
<configuration>
<path>/</path>
<useTestClasspath>true</useTestClasspath>
<fork>true</fork>
<warSourceDirectory>${basedir}/src/test/webapp</warSourceDirectory>
<ignorePackaging>true</ignorePackaging>
</configuration>
</execution>
<execution>
<id>tomcat-shutdown</id>
<goals>
<goal>shutdown</goal>
</goals>
<phase>post-integration-test</phase>
</execution>
</executions>
</plugin>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]