2
Maven과의 통합 테스트에 Cargo를 사용하고 있습니다. 사전 통합에서 .m2 repo에서 다른 전쟁을 배포하는 사례를 발견했습니다 here. 누군가가 현재 프로젝트를 전개하는 방법과 카고를 사용하여 다른 전쟁을 안내 할 수 있습니까?현재 프로젝트 배포 및화물을 사용하는 다른 WAR
Maven과의 통합 테스트에 Cargo를 사용하고 있습니다. 사전 통합에서 .m2 repo에서 다른 전쟁을 배포하는 사례를 발견했습니다 here. 누군가가 현재 프로젝트를 전개하는 방법과 카고를 사용하여 다른 전쟁을 안내 할 수 있습니까?현재 프로젝트 배포 및화물을 사용하는 다른 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>
은 그럼 그냥화물 전화 :
활성화 '통합 테스트'프로파일 배포