【发布时间】:2015-06-01 04:46:39
【问题描述】:
我需要在我的 maven 全新安装中运行 ActiveMQ,以便它启动 activemq 然后运行我的测试。我已将插件包含在 pom.xml 中,并添加了用于配置 mq 详细信息的 mq 配置文件。当我在一个控制台上运行 activeMq 并在其他控制台上运行 maven clean install(2 个单独的命令在 2 个单独的控制台上)时,它成功运行并且所有测试都通过了。但是有没有办法我可以在同一个控制台上使用 1 个命令运行 activemq 和全新安装?基本上我希望当我执行 mvn clean test install 时,它应该首先自动启动 mq,然后继续进行测试...
我尝试过使用 mvn activemq:run clean test install 或 mvn clean test install activemq:run 等命令。但它要么进行全新安装,要么运行 activemq...
如何组合这 2 个命令(activemq:run 和 mvn clean test install)?
【问题讨论】:
标签: java maven testing jms activemq