2
我正在使用Cargo进行与Maven的集成测试。我发现在预集成here中从.m2回购部署另一场战争的例子。有人可以指导我如何部署当前的项目和使用货物的另一场战争?部署当前项目和使用Cargo的另一个WAR
我正在使用Cargo进行与Maven的集成测试。我发现在预集成here中从.m2回购部署另一场战争的例子。有人可以指导我如何部署当前的项目和使用货物的另一场战争?部署当前项目和使用Cargo的另一个WAR
查看Cargo Plugin配置的deployables标签。
此配置应该部署您当前的项目和AnotherWAR项目。
<profiles>
<profile>
<id>integration-test</id>
<dependencies>
<dependency>
<groupId>com.me</groupId>
<artifactId>AnotherWAR</artifactId>
<version>1.2</version>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.2.4</version>
<configuration>
<deployables>
<deployable>
<groupId>com.me</groupId>
<artifactId>AnotherWAR</artifactId>
</deployable>
</deployables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
然后就叫货:与“集成测试”轮廓积极
部署