【发布时间】:2014-08-20 13:27:05
【问题描述】:
我正在开发一个多模块 Maven 项目。我们使用 dropwizard,为了执行验收测试,我们使用 maven-antrun-plugin 启动应用程序,但问题是测试完成后应用程序不会停止,然后我必须从任务管理器中终止进程。我google了很多,但没有结果。有什么办法可以从 maven(for Jenkins) 中做到这一点?
我尝试了停止目标,但它不起作用:
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
【问题讨论】:
-
你为什么不写junit测试? --> dropwizard.io/manual/testing.html#integrated-testing
标签: java maven dropwizard acceptance-testing maven-antrun-plugin