OW2 Consortium petalsmaster

Rev

Rev 1087 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<!-- Dragon - SOA Governance Platform. Copyright (c) 2008 EBM Websourcing, 
        http://www.ebmwebsourcing.com/ This library is free software; you can redistribute 
        it and/or modify it under the terms of the GNU Lesser General Public License 
        as published by the Free Software Foundation; either version 2.1 of the License, 
        or (at your option) any later version. This library is distributed in the 
        hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 
        warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
        GNU Lesser General Public License for more details. You should have received 
        a copy of the GNU Lesser General Public License along with this library; 
        if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 
        330, Boston, MA 02111-1307 USA Initial developer(s): EBM WebSourcing -->
<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>
  <parent>
    <artifactId>dragon-parent</artifactId>
    <groupId>org.ow2.dragon</groupId>
    <version>8-SNAPSHOT</version>
  </parent>
  <!-- ============== -->
  <!-- Identification -->
  <!-- ============== -->
  <name>dragon-integration-test</name>
  <artifactId>dragon-integration-test</artifactId>
  <groupId>org.ow2.dragon</groupId>
  <version>1.2-SNAPSHOT</version>
  <description>Petals Master Integration Test</description>
  <scm>
    <developerConnection>scm:svn:svn+ssh://svn.forge.objectweb.org/svnroot/dragon/trunk/petals-master/integration</developerConnection>
    <connection>scm:svn:svn://svn.forge.objectweb.org/svnroot/dragon/trunk/petals-master-integration/integration</connection>
  </scm>
  <!-- ========== -->
  <!-- Properties -->
  <!-- ========== -->
  <properties>
    <topDirectoryLocation>../..</topDirectoryLocation>
    <spring-version>2.5.6</spring-version>
    <jetty-version>7.2.2.v20101205</jetty-version>
    <petals.artifactId>petals-esb</petals.artifactId>
    <petals-cli.artifactId>petals-cli</petals-cli.artifactId>
    <petals-esb.version>3.2-SNAPSHOT</petals-esb.version>
    <petals-cli.version>1.0.0-SNAPSHOT</petals-cli.version>
    <petals-ant.version>2.1.3-SNAPSHOT</petals-ant.version>
    <tomcat.container.name>tomcat6x</tomcat.container.name>
    <tomcat.container.url>ftp://user1:test@192.168.1.206/WebTools/Servers/apache-tomcat-6.0.20.zip
                </tomcat.container.url>
  </properties>
  <!-- ============ -->
  <!-- Dependencies -->
  <!-- ============ -->
  <dependencies>
    <!-- Servlets dependencies -->
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.ow2.dragon</groupId>
      <artifactId>dragon-uddi-ws</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.ow2.dragon</groupId>
      <artifactId>dragon-api-ws</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1</version>
    </dependency>
    <!-- Spring dependencies -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>${spring-version}</version>
    </dependency>
    <dependency>
      <artifactId>spring-aop</artifactId>
      <groupId>org.springframework</groupId>
      <version>${spring-version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.security</groupId>
      <artifactId>spring-security-core-tiger</artifactId>
      <version>2.0.4</version>
      <exclusions>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-aop</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-context</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-beans</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-core</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.springframework.security</groupId>
      <artifactId>spring-security-taglibs</artifactId>
      <version>2.0.4</version>
      <exclusions>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-web</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.springframework</groupId>
          <artifactId>spring-jdbc</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <!-- Test -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <version>${spring-version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.seleniumhq.selenium.client-drivers</groupId>
      <artifactId>selenium-java-client-driver</artifactId>
      <version>1.0.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.ow2.petals</groupId>
      <artifactId>petals-esb</artifactId>
      <version>${petals-esb.version}</version>
      <type>zip</type>
    </dependency>
    <dependency>
      <groupId>org.ow2.petals</groupId>
      <artifactId>petals-cli</artifactId>
      <version>${petals-cli.version}</version>
      <type>zip</type>
    </dependency>
    <dependency>
      <groupId>org.ow2.dragon</groupId>
      <artifactId>dragon-ui</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <artifactId>petals-bc-soap</artifactId>
      <groupId>org.ow2.petals</groupId>
      <type>jbi-component</type>
      <version>4.1-SNAPSHOT</version>
    </dependency>
    <dependency>
      <artifactId>petals-ant</artifactId>
      <groupId>org.ow2.petals</groupId>
      <version>${petals-ant.version}</version>
    </dependency>
  </dependencies>
  <!-- ====== -->
  <!-- Profiles : integration -->
  <!-- ====== -->
  <profiles>
    <!-- The following profile will be used to run all Petals Master integration 
                        tests. -->
    <!-- Tomcat integration profile -->
    <profile>
      <id>integration</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>create-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
                  <appendAssemblyId>false</appendAssemblyId>
                  <finalName>${petals.artifactId}</finalName>
                  <descriptors>
                    <descriptor>
                                                                                        src/main/assembly/assembly.xml </descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <executions>
              <execution>
                <id>install</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>install</goal>
                </goals>
              </execution>
              <execution>
                <id>start-container</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start</goal>
                </goals>
                <configuration>
                  <wait>false</wait>
                </configuration>
              </execution>
              <execution>
                <id>stop-container</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>stop</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <container>
                <containerId>${tomcat.container.name}</containerId>
                <zipUrlInstaller>
                  <url>${tomcat.container.url}</url>
                  <installDir>${java.io.tmpdir}/cargoinstalls</installDir>
                </zipUrlInstaller>
                <log>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.log
                                                                </log>
                <output>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.out
                                                                </output>
                <timeout>600000</timeout>
              </container>
              <configuration>
                <type>standalone</type>
                <deployables>
                  <!-- application to deploy -->
                  <deployable>
                    <groupId>org.ow2.dragon</groupId>
                    <artifactId>dragon-ui</artifactId>
                    <type>war</type>
                    <properties>
                      <context>petals-master</context>
                    </properties>
                  </deployable>
                </deployables>
              </configuration>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>selenium-maven-plugin</artifactId>
            <version>1.1</version>
            <executions>
              <execution>
                <id>xvfb</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>xvfb</goal>
                </goals>
              </execution>
              <execution>
                <id>start-selenium</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start-server</goal>
                </goals>
                <configuration>
                  <background>true</background>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>start-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS standalone container : startup">
                    <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
                    <echo message="Run petals esb in deamon mode..."/>
                    <java jar="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}/bin/petals-launcher.jar" fork="true" spawn="true"/>
                    <sleep seconds="30"/>
                  </tasks>
                </configuration>
              </execution>
              <execution>
                <id>deploy-petals-components</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS BC MAIL tests">
                    <!-- TODO : find a better way to set the PETALS_HOME property/env-variable -->
                    <property name="petals.home" value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}"/>
                    <ant antfile="${project.build.directory}/${petals.artifactId}/build.xml" dir="${project.build.directory}/${petals.artifactId}">
                      <target name="deploy"/>
                    </ant>
                  </tasks>
                </configuration>
              </execution>
              <execution>
                <id>stop-petals-distrib</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS standalone         container : stop">
                    <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
                    <java jar="${project.build.directory}/${petals.artifactId}/cli/${petals-cli.artifactId}-${petals-cli.version}/bin/petals-cli.jar" fork="true" spawn="true">
                      <arg value="stop"/>
                    </java>
                  </tasks>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-artifact-ant</artifactId>
                <version>2.0.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>jtidy</groupId>
                <artifactId>jtidy</artifactId>
                <version>4aug2000r7-dev</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>cpptasks</artifactId>
                <version>1.0b3</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b2</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>optional</artifactId>
                <version>1.5.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-antlr</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>antlr</groupId>
                <artifactId>antlrall</artifactId>
                <version>2.7.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-nodeps</artifactId>
                <version>1.6.5</version>
              </dependency>
            </dependencies>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>2.7.1</version>
            <configuration>
              <includes>
                <include>**/*Test.java</include>
                <include>**/Test*.java</include>
                <include>**/TestCase.java</include>
              </includes>
            </configuration>
            <executions>
              <execution>
                <id>integration-test</id>
                <goals>
                  <goal>integration-test</goal>
                </goals>
              </execution>
              <execution>
                <id>verify</id>
                <goals>
                  <goal>verify</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <!-- | The following profile will be used to run all Petals Master integration 
                        tests. -->
    <profile>
      <id>integration-custom</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>create-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
                  <appendAssemblyId>false</appendAssemblyId>
                  <finalName>${petals.artifactId}</finalName>
                  <descriptors>
                    <descriptor>
                                                                                        src/main/assembly/assembly.xml </descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>${jetty-version}</version>
            <configuration>
              <scanIntervalSeconds>10</scanIntervalSeconds>
              <stopKey>foo</stopKey>
              <stopPort>9999</stopPort>
            </configuration>
            <executions>
              <execution>
                <id>start-jetty</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run-war</goal>
                </goals>
                <configuration>
                  <scanIntervalSeconds>0</scanIntervalSeconds>
                  <daemon>true</daemon>
                  <webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war
                                                                        </webApp>
                  <webAppConfig>
                    <contextPath>/petals-master</contextPath>
                  </webAppConfig>
                </configuration>
              </execution>
              <execution>
                <id>stop-jetty</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>stop</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>selenium-maven-plugin</artifactId>
            <version>1.1</version>
            <executions>
              <execution>
                <id>xvfb</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>xvfb</goal>
                </goals>
              </execution>
              <execution>
                <id>start-selenium</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start-server</goal>
                </goals>
                <configuration>
                  <background>true</background>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>start-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS standalone container : startup">
                    <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
                    <echo message="Run petals esb in deamon mode..."/>
                    <java jar="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}/bin/petals-launcher.jar" fork="true" spawn="true"/>
                    <sleep seconds="30"/>
                  </tasks>
                </configuration>
              </execution>
              <execution>
                <id>deploy-petals-components</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS BC MAIL tests">
                    <!-- TODO : find a better way to set the PETALS_HOME property/env-variable -->
                    <property name="petals.home" value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}"/>
                    <ant antfile="${project.build.directory}/${petals.artifactId}/build.xml" dir="${project.build.directory}/${petals.artifactId}">
                      <target name="deploy"/>
                    </ant>
                  </tasks>
                </configuration>
              </execution>
              <execution>
                <id>stop-petals-distrib</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS standalone         container : stop">
                    <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
                    <java jar="${project.build.directory}/${petals.artifactId}/cli/${petals-cli.artifactId}-${petals-cli.version}/bin/petals-cli.jar" fork="true" spawn="true">
                      <arg value="stop"/>
                    </java>
                  </tasks>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-artifact-ant</artifactId>
                <version>2.0.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>jtidy</groupId>
                <artifactId>jtidy</artifactId>
                <version>4aug2000r7-dev</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>cpptasks</artifactId>
                <version>1.0b3</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b2</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>optional</artifactId>
                <version>1.5.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-antlr</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>antlr</groupId>
                <artifactId>antlrall</artifactId>
                <version>2.7.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-nodeps</artifactId>
                <version>1.6.5</version>
              </dependency>
            </dependencies>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>2.7.1</version>
            <configuration>
              <includes>
                <include>org/ow2/dragon/integration/${test.package}/*Test.java
                                                                </include>
                <include>org/ow2/dragon/integration/${test.package}/Test*.java
                                                                </include>
                <include>org/ow2/dragon/integration/${test.package}/*TestCase.java
                                                                </include>
              </includes>
            </configuration>
            <executions>
              <execution>
                <id>integration-test</id>
                <goals>
                  <goal>integration-test</goal>
                </goals>
              </execution>
              <execution>
                <id>verify</id>
                <goals>
                  <goal>verify</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>integration-eclipse</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>create-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
                  <appendAssemblyId>false</appendAssemblyId>
                  <finalName>${petals.artifactId}</finalName>
                  <descriptors>
                    <descriptor>
                                                                                        src/main/assembly/assembly.xml </descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>${jetty-version}</version>
            <configuration>
              <scanIntervalSeconds>10</scanIntervalSeconds>
              <stopKey>foo</stopKey>
              <stopPort>9999</stopPort>
            </configuration>
            <executions>
              <execution>
                <id>start-jetty</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run-war</goal>
                </goals>
                <configuration>
                  <scanIntervalSeconds>0</scanIntervalSeconds>
                  <daemon>true</daemon>
                  <webApp>${project.build.directory}/${petals.artifactId}/dragon-ui-${project.version}.war
                                                                        </webApp>
                  <webAppConfig>
                    <contextPath>/petals-master</contextPath>
                  </webAppConfig>
                </configuration>
              </execution>
              <execution>
                <id>stop-jetty</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>stop</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>selenium-maven-plugin</artifactId>
            <version>1.1</version>
            <executions>
              <execution>
                <id>start-selenium</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start-server</goal>
                </goals>
                <configuration>
                  <background>true</background>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>start-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS standalone container : startup">
                    <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
                    <echo message="Run petals esb in deamon mode..."/>
                    <java jar="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}/bin/petals-launcher.jar" fork="true" spawn="true"/>
                    <sleep seconds="30"/>
                  </tasks>
                </configuration>
              </execution>
              <execution>
                <id>deploy-petals-components</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS BC MAIL tests">
                    <!-- TODO : find a better way to set the PETALS_HOME property/env-variable -->
                    <property name="petals.home" value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}"/>
                    <ant antfile="${project.build.directory}/${petals.artifactId}/build.xml" dir="${project.build.directory}/${petals.artifactId}">
                      <target name="deploy"/>
                    </ant>
                    <sleep hours="2"/>
                  </tasks>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-artifact-ant</artifactId>
                <version>2.0.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>jtidy</groupId>
                <artifactId>jtidy</artifactId>
                <version>4aug2000r7-dev</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>cpptasks</artifactId>
                <version>1.0b3</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b2</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>optional</artifactId>
                <version>1.5.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-antlr</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>antlr</groupId>
                <artifactId>antlrall</artifactId>
                <version>2.7.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-nodeps</artifactId>
                <version>1.6.5</version>
              </dependency>
            </dependencies>
          </plugin>
        </plugins>
      </build>
    </profile>
    <!-- Tomcat integration profile for Eclipse testing -->
    <profile>
      <id>integration-eclipse-tomcat</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>create-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
                  <appendAssemblyId>false</appendAssemblyId>
                  <finalName>${petals.artifactId}</finalName>
                  <descriptors>
                    <descriptor>
                                                                                        src/main/assembly/assembly.xml </descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <executions>
              <execution>
                <id>install</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>install</goal>
                </goals>
              </execution>
              <execution>
                <id>start-container</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start</goal>
                </goals>
                <configuration>
                  <wait>false</wait>
                </configuration>
              </execution>
              <execution>
                <id>stop-container</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>stop</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <container>
                <containerId>${tomcat.container.name}</containerId>
                <zipUrlInstaller>
                  <url>${tomcat.container.url}</url>
                  <installDir>${java.io.tmpdir}/cargoinstalls</installDir>
                </zipUrlInstaller>
                <log>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.log
                                                                </log>
                <output>${java.io.tmpdir}/cargoinstalls/logs/${tomcat.container.name}.out
                                                                </output>
                <timeout>600000</timeout>
              </container>
              <configuration>
                <type>standalone</type>
                <deployables>
                  <!-- application to deploy -->
                  <deployable>
                    <groupId>org.ow2.dragon</groupId>
                    <artifactId>dragon-ui</artifactId>
                    <type>war</type>
                    <properties>
                      <context>petals-master</context>
                    </properties>
                  </deployable>
                </deployables>
              </configuration>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>selenium-maven-plugin</artifactId>
            <version>1.1</version>
            <executions>
              <execution>
                <id>start-selenium</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start-server</goal>
                </goals>
                <configuration>
                  <background>true</background>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>start-petals-distrib</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS standalone container : startup">
                    <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
                    <echo message="Run petals esb in deamon mode..."/>
                    <java jar="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}/bin/petals-launcher.jar" fork="true" spawn="true"/>
                    <sleep seconds="30"/>
                  </tasks>
                </configuration>
              </execution>
              <execution>
                <id>deploy-petals-components</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks description="PEtALS BC MAIL tests">
                    <!-- TODO : find a better way to set the PETALS_HOME property/env-variable -->
                    <property name="petals.home" value="${project.build.directory}/${petals.artifactId}/${petals.artifactId}-${petals-esb.version}"/>
                    <ant antfile="${project.build.directory}/${petals.artifactId}/build.xml" dir="${project.build.directory}/${petals.artifactId}">
                      <target name="deploy"/>
                    </ant>
                    <sleep hours="2"/>
                  </tasks>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-artifact-ant</artifactId>
                <version>2.0.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>jtidy</groupId>
                <artifactId>jtidy</artifactId>
                <version>4aug2000r7-dev</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>cpptasks</artifactId>
                <version>1.0b3</version>
              </dependency>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b2</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>optional</artifactId>
                <version>1.5.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-antlr</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>antlr</groupId>
                <artifactId>antlrall</artifactId>
                <version>2.7.4</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-nodeps</artifactId>
                <version>1.6.5</version>
              </dependency>
            </dependencies>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <!-- ====== -->
  <!-- Build -->
  <!-- ====== -->
  <build>
    <plugins>
      <plugin>
        <groupId>org.ow2.petals</groupId>
        <artifactId>maven-petals-plugin</artifactId>
        <version>2.0</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <!-- Skip the normal tests, we'll run them in the integration-test phase -->
          <skip>true</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>ebmws-public.release</id>
      <url>http://maven.petalslink.com/public</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
        <updatePolicy>daily</updatePolicy>
      </snapshots>
    </repository>
    <repository>
      <id>ebmws-public.snapshot</id>
      <url>http://maven.petalslink.com/public-snapshot</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
      </snapshots>
    </repository>
  </repositories>
</project>