You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Olivier Lamy (Closed) (JIRA)" <ji...@apache.org> on 2012/03/05 23:03:56 UTC
[jira] [Closed] (MTOMCAT-123) Can't add test scoped dependency
filters to web.xml
[ https://issues.apache.org/jira/browse/MTOMCAT-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MTOMCAT-123.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0
fixed r1297241.
SNAPSHOT deployed.
> 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
> Fix For: 2.0
>
> Attachments: tomcat-testcase.zip
>
>
> 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org