| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!--Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under |
| the Apache License, Version 2.0 (theĆ "License"); you may not use this file except in compliance with the License. You may |
| obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to |
| in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF |
| ANY ~ KIND, either express or implied. See the License for the specific language governing permissions and limitations under |
| the License. --> |
| |
| <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"> |
| <parent> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata</artifactId> |
| <version>0.15-SNAPSHOT</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>integration-tests</artifactId> |
| <name>Airavata Integration Tests</name> |
| <url>http://airavata.apache.org/</url> |
| |
| <build> |
| <plugins> |
| <!-- unpack the server distribution--> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.8</version> |
| <executions> |
| <!--execution> |
| <id>unpack-dependencies</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>apache-airavata-samples</artifactId> |
| <type>zip</type> |
| <outputDirectory>${project.build.directory}/samples</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution --> |
| <execution> |
| <id>unpack</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>apache-airavata-server</artifactId> |
| <version>${project.version}</version> |
| <type>zip</type> |
| <classifier>bin</classifier> |
| </artifactItem> |
| </artifactItems> |
| <!--includes>**/*.war</includes--> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Start and stop the server before and after the integration tests --> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <id>start-airavata-server</id> |
| <phase>pre-integration-test</phase> |
| <configuration> |
| <target> |
| <exec executable="./${airavata.executable}" dir="${airavata.server.extractedLocation}" spawn="${airavata.server.start.spawn}"> |
| |
| </exec> |
| |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>stop-airavata-server</id> |
| <phase>post-integration-test</phase> |
| <configuration> |
| <target> |
| <exec executable="./${airavata.executable}" dir="${airavata.server.extractedLocation}" spawn="${airavata.server.stop.spawn}"> |
| <arg value="stop" /> |
| <arg value="--force" /> |
| </exec> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.5</version> |
| <configuration> |
| <failIfNoTests>false</failIfNoTests> |
| <systemPropertyVariables> |
| <test.server.port>${test.running.port}</test.server.port> |
| <test.server.url>localhost</test.server.url> |
| <log4j.configuration>file:${basedir}/src/test/resources/log4j.properties</log4j.configuration> |
| <property> |
| <name>log4j.configuration</name> |
| <value>file:${project.build.directory}/test-classes/log4j.properties</value> |
| </property> |
| <myproxy.user>${user}</myproxy.user> |
| <myproxy.password>${pwd}</myproxy.password> |
| <trusted.cert.location>${cert}</trusted.cert.location> |
| </systemPropertyVariables> |
| |
| <!--excludes> |
| <exclude>**/*IT.java</exclude> |
| </excludes --> |
| <includes> |
| <!--include>**/*IT.java</include --> |
| <include>**/SimpleEchoIT.java</include> |
| <!--include>**/DataRetrievalIT.java</include--> |
| </includes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>verify</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>ant-contrib</groupId> |
| <artifactId>ant-contrib</artifactId> |
| <version>1.0b3</version> |
| <exclusions> |
| <exclusion> |
| <groupId>ant</groupId> |
| <artifactId>ant</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ant</groupId> |
| <artifactId>ant-nodeps</artifactId> |
| <version>1.8.1</version> |
| </dependency> |
| <!--dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>apache-airavata-samples</artifactId> |
| <version>${project.version}</version> |
| <type>zip</type> |
| </dependency--> |
| |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-jpa-registry</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!--<dependency>--> |
| <!--<groupId>org.apache.airavata</groupId>--> |
| <!--<artifactId>airavata-client-api</artifactId>--> |
| <!--<version>${project.version}</version>--> |
| <!--<exclusions>--> |
| <!--<exclusion>--> |
| <!--<groupId>org.slf4j</groupId>--> |
| <!--<artifactId>slf4j-simple</artifactId>--> |
| <!--</exclusion>--> |
| <!--</exclusions>--> |
| <!--</dependency>--> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-data-models</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-model-utils</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>app-catalog-data</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>app-catalog-cpi</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-api-stubs</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>${thrift.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <version>6.1.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <scope>test</scope> |
| <groupId>com.sun.xml.bind</groupId> |
| <artifactId>jaxb-impl</artifactId> |
| <version>2.2.3-1</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.xml.bind</groupId> |
| <artifactId>jaxb-api</artifactId> |
| <version>2.2.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-client-configuration</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| |
| <properties> |
| <user /> |
| <pwd /> |
| <cert /> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <archieve.name>apache-airavata</archieve.name> |
| <airavata.executable>airavata-server.sh</airavata.executable> |
| <airavata.server.name>apache-airavata-server</airavata.server.name> |
| <airavata.server.start.spawn>true</airavata.server.start.spawn> |
| <airavata.server.stop.spawn>false</airavata.server.stop.spawn> |
| <airavata.server.extractedLocation>${project.build.directory}/${airavata.server.name}-${project.version}/bin</airavata.server.extractedLocation> |
| |
| </properties> |
| </project> |