Я использую Cargo для интеграционных тестов с Maven. Я нашел примеры развертывания другой войны из репозитория .m2 в предварительной интеграции здесь . Может ли кто-нибудь подсказать мне, как развернуть текущий проект и другую войну с помощью Cargo?
Разверните текущий проект И еще одну ВОЙНУ, используя Cargo
Ответы (1)
Проверьте тег deployables для настройки модуля Cargo.
Эта конфигурация должна развернуть ваш текущий проект и проект 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>
Затем просто вызовите cargo:deploy с активным профилем «интеграция-тест».
person
rpgFANATIC
schedule
27.09.2012