121 lines
4.5 KiB
XML
Executable File
121 lines
4.5 KiB
XML
Executable File
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<!--
|
|
=========================================================
|
|
COORDINATES
|
|
=========================================================
|
|
-->
|
|
<parent>
|
|
<groupId>it.imolinfo.jbi4corba</groupId>
|
|
<artifactId>integration-test</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<groupId>it.imolinfo.jbi4corba.pre-test</groupId>
|
|
<artifactId>pre-integration-test</artifactId>
|
|
|
|
<!--
|
|
=========================================================
|
|
DESCRIPTION
|
|
=========================================================
|
|
-->
|
|
<name>${pom.groupId}.${pom.artifactId}-${pom.version} # ${pom.packaging}</name>
|
|
|
|
<!--
|
|
=========================================================
|
|
PACKAGING
|
|
=========================================================
|
|
-->
|
|
<packaging>pom</packaging>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>it.imolinfo.jbi4corba</groupId>
|
|
<artifactId>jbi4corba</artifactId>
|
|
<version>${version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<properties>
|
|
<jbi.component.artifactId>jbi4corba</jbi.component.artifactId>
|
|
</properties>
|
|
|
|
<profiles>
|
|
|
|
|
|
<!-- Profile which executes integration test in Open ESB -->
|
|
<profile>
|
|
<id>OpenESBTest</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<inherited>false</inherited>
|
|
<groupId>it.imolinfo.jbicommons</groupId>
|
|
<artifactId>OpenESBMojo</artifactId>
|
|
<configuration>
|
|
<openesb.home>${openesb.home}</openesb.home>
|
|
<jbi.component.name>${jbi.component.artifactId}</jbi.component.name>
|
|
<jbi.component.path>
|
|
${settings.localRepository}/it/imolinfo/${jbi.component.artifactId}/${jbi.component.artifactId}/${version}/${jbi.component.artifactId}-${version}-installer.zip
|
|
</jbi.component.path>
|
|
<jbi.service.assembly.path>
|
|
${settings.localRepository}/it/imolinfo/${jbi.component.artifactId}/${parent.artifactId}/${jbi.deployable.artifactId}/${version}/${jbi.deployable.artifactId}-${version}.zip
|
|
</jbi.service.assembly.path>
|
|
<jbi.service.assembly.name>${jbi.deployable.artifactId}</jbi.service.assembly.name>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>start container, install component</id>
|
|
<phase>integration-test</phase>
|
|
<goals>
|
|
<goal>stopOpenESB</goal>
|
|
<goal>startOpenESB</goal>
|
|
<goal>uninstallBCOpenESB</goal>
|
|
<goal>installBCOpenESB</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<!-- Profile which executes integration test in ServiceMix -->
|
|
<profile>
|
|
<id>ServiceMixTest</id>
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<inherited>false</inherited>
|
|
<groupId>it.imolinfo.jbicommons</groupId>
|
|
<artifactId>ServiceMixMojo</artifactId>
|
|
<configuration>
|
|
<servicemix.home>${servicemix.home}</servicemix.home>
|
|
<sm.component.name>${jbi.component.artifactId}</sm.component.name>
|
|
<sm.install.file>
|
|
${settings.localRepository}/it/imolinfo/${jbi.component.artifactId}/${jbi.component.artifactId}/${version}/${jbi.component.artifactId}-${version}-installer.zip
|
|
</sm.install.file>
|
|
<sm.deploy.file>
|
|
${settings.localRepository}/it/imolinfo/${jbi.component.artifactId}/${parent.artifactId}/${jbi.deployable.artifactId}/${version}/${jbi.deployable.artifactId}-${version}.zip
|
|
</sm.deploy.file>
|
|
<sm.service.assembly.name>${jbi.deployable.artifactId}</sm.service.assembly.name>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>ServiceMix: install component</id>
|
|
<phase>integration-test</phase>
|
|
<goals>
|
|
<goal>install-component</goal>
|
|
<goal>start-component</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|