openesb-components/contrib-imola/corba-bc/integration-test/test-provider-simple-mult-i.../provider-simple-mult-interf.../pom.xml

512 lines
19 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.test-provider-simple-mult-interface</groupId>
<artifactId>test-provider-simple-mult-interface</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>provider-simple-mult-interface-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>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${jbi.deployable.artifactId}</artifactId>
<version>${version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
<properties>
<soapui.projectFile>test-provider-simple-mult-interface-soapui-project.xml</soapui.projectFile>
<servant.id>provider-simple-mult-interface-servant</servant.id>
<servant.main.class>it.imolinfo.jbi4corba.test.servant.testprovidersimplemult.StartMultipleServant</servant.main.class>
<jbi.deployable.artifactId>provider-simple-mult-interface-service-assembly</jbi.deployable.artifactId>
<jbi.component.artifactId>jbi4corba</jbi.component.artifactId>
</properties>
<profiles>
<profile>
<id>sunorb</id>
<properties>
<orb.properties>sunorb.properties</orb.properties>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>glassfishorb</id>
<properties>
<orb.properties>glassfishorb.properties</orb.properties>
</properties>
</profile>
<profile>
<id>ibmorb</id>
<properties>
<orb.properties>ibmorb.properties</orb.properties>
</properties>
</profile>
<profile>
<id>jacorb</id>
<properties>
<orb.properties>jacorb.properties</orb.properties>
</properties>
</profile>
<!-- Profile which executes integration test in OpenESB -->
<profile>
<id>OpenESBTest</id>
<build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>launch orbd and servant</id>
<phase>pre-integration-test</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>false</includePluginDependencies>
<executableDependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
</executableDependency>
<mainClass>${servant.main.class}</mainClass>
<arguments>
<argument>${orb.properties}</argument>
<argument>daemon=true</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<inherited>false</inherited>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<projectFile>${basedir}/src/test/etc/soapui/${soapui.projectFile}</projectFile>
<printeReport>yes</printeReport>
<junitReport>yes</junitReport>
<exportAll>no</exportAll>
<outputFolder>${basedir}/target/soapui</outputFolder>
<host>localhost:8192</host>
</configuration>
<executions>
<execution>
<id>launch soapui tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<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>deploy service assembly</id>
<phase>pre-integration-test</phase>
<goals>
<goal>undeploySA</goal>
<goal>deploySA</goal>
</goals>
</execution>
<execution>
<id>undeploy service assembly</id>
<phase>post-integration-test</phase>
<goals>
<goal>undeploySA</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>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>launch orbd and servant</id>
<phase>pre-integration-test</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>false</includePluginDependencies>
<executableDependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
</executableDependency>
<mainClass>${servant.main.class}</mainClass>
<arguments>
<argument>${orb.properties}</argument>
<argument>daemon=true</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<inherited>false</inherited>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<projectFile>${basedir}/src/test/etc/soapui/${soapui.projectFile}</projectFile>
<printeReport>yes</printeReport>
<junitReport>yes</junitReport>
<exportAll>no</exportAll>
<outputFolder>${basedir}/target/soapui</outputFolder>
<host>localhost:8192</host>
</configuration>
<executions>
<execution>
<id>launch soapui tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<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: deploy service assembly</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy-service-assembly</goal>
<goal>start-service-assembly</goal>
</goals>
</execution>
<execution>
<id>ServiceMix: undeploy service assembly</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-service-assembly</goal>
<goal>shut-down-service-assembly</goal>
<goal>undeploy-service-assembly</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- single test profiles ******************************** -->
<!-- Profile which executes single integration test in OpenESB -->
<profile>
<id>OpenESBSingleTest</id>
<build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>launch orbd and servant</id>
<phase>pre-integration-test</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>false</includePluginDependencies>
<executableDependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
</executableDependency>
<mainClass>${servant.main.class}</mainClass>
<arguments>
<argument>${orb.properties}</argument>
<argument>daemon=true</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<inherited>false</inherited>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<projectFile>${basedir}/src/test/etc/soapui/${soapui.projectFile}</projectFile>
<printeReport>yes</printeReport>
<junitReport>yes</junitReport>
<exportAll>no</exportAll>
<outputFolder>${basedir}/target/soapui</outputFolder>
<host>localhost:8192</host>
</configuration>
<executions>
<execution>
<id>launch soapui tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<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, deploy service assembly</id>
<phase>pre-integration-test</phase>
<goals>
<goal>stopOpenESB</goal>
<goal>startOpenESB</goal>
<goal>undeploySA</goal>
<goal>uninstallBCOpenESB</goal>
<goal>installBCOpenESB</goal>
<goal>deploySA</goal>
</goals>
</execution>
<execution>
<id>undeploy service assembly, uninstall component, stop container</id>
<phase>post-integration-test</phase>
<goals>
<goal>undeploySA</goal>
<goal>uninstallBCOpenESB</goal>
<goal>stopOpenESB</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Profile which executes single integration test in ServiceMix -->
<profile>
<id>ServiceMixSingleTest</id>
<build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>launch orbd and servant</id>
<phase>pre-integration-test</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>false</includePluginDependencies>
<executableDependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
</executableDependency>
<mainClass>${servant.main.class}</mainClass>
<arguments>
<argument>${orb.properties}</argument>
<argument>daemon=true</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>${servant.id}</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<inherited>false</inherited>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<projectFile>${basedir}/src/test/etc/soapui/${soapui.projectFile}</projectFile>
<printeReport>yes</printeReport>
<junitReport>yes</junitReport>
<exportAll>no</exportAll>
<outputFolder>${basedir}/target/soapui</outputFolder>
<host>localhost:8192</host>
</configuration>
<executions>
<execution>
<id>launch soapui tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<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, deploy service assembly</id>
<phase>pre-integration-test</phase>
<goals>
<goal>install-component</goal>
<goal>start-component</goal>
<goal>deploy-service-assembly</goal>
<goal>start-service-assembly</goal>
</goals>
</execution>
<execution>
<id>ServiceMix: undeploy service assembly, uninstall component</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-service-assembly</goal>
<goal>shut-down-service-assembly</goal>
<goal>undeploy-service-assembly</goal>
<goal>shut-down-component</goal>
<goal>uninstall-component</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>