[英]I have a multi-module Maven 2 POM that has two WARs, how can I configure it to deploy both wars prior to running tests?
Roughly, I have (say) project A, pom packaging, that have two module M1 and M2 (say) each of which have war packaging. 大致来说,我有一个项目A,即pom包装,它有两个模块M1和M2(例如),每个模块都有战争包装。 M2 has integration tests, but the M2 war makes service calls to the war of M1. M2进行了集成测试,但是M2战争向M1战争发出了服务电话。 This should really: 这应该确实是:
I would use something like the db maintain maven plugin for the database deployment and the maven wagon plugin to deploy the war files into the container. 我将使用诸如db maintenance maven插件之类的东西来进行数据库部署,并使用maven wagon插件来将war文件部署到容器中。 You will have to add the wagon config into both m1+m2 modules but well... the second time is easier :) 您将不得不将wagon配置添加到两个m1 + m2模块中,但是……第二次变得更容易了:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.