【发布时间】:2011-09-17 10:48:08
【问题描述】:
我正在使用 maven-jetty 插件,当我使用 jetty 运行 webapp 时,webapp 根本不会在 target/test-classes 目录中查找资源。但是,它可以在 target/classes 目录中找到资源。
这是我的 pom.xml 的相关部分
<configuration>
<webApp>target/webapp.war</webApp>
<testClassesDirectory>target/test-classes/</testClassesDirectory>
<useTestClasspath>true</useTestClasspath>
<stopPort>9966</stopPort>
<stopKey>stopKey</stopKey>
</configuration>
如何让 maven-jetty 插件在目标/测试类中查找资源
【问题讨论】:
标签: maven jetty integration-testing