Preparing for Bigtop 0.7.0 release
[bigtop.git] / bigtop-tests / test-execution / smokes / spark / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18 <project xmlns="http://maven.apache.org/POM/4.0.0"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
22
23 <parent>
24 <groupId>org.apache.bigtop.itest</groupId>
25 <artifactId>smoke-tests</artifactId>
26 <version>0.7.0</version>
27 <relativePath>../pom.xml</relativePath>
28 </parent>
29
30 <groupId>org.apache.bigtop.itest</groupId>
31 <artifactId>spark-smoke-execution</artifactId>
32 <version>0.7.0</version>
33 <name>Spark smoke test execution</name>
34
35 <properties>
36 <SPARK_HOME>${env.SPARK_HOME}</SPARK_HOME>
37 <SPARK_MASTER>${env.SPARK_MASTER}</SPARK_MASTER>
38 <org.apache.maven-dependency-plugin.groupId>org.apache.bigtop.itest</org.apache.maven-dependency-plugin.groupId>
39 <org.apache.maven-dependency-plugin.artifactId>spark-smoke</org.apache.maven-dependency-plugin.artifactId>
40 <org.apache.maven-dependency-plugin.version>${spark-smoke.version}</org.apache.maven-dependency-plugin.version>
41 <org.apache.maven-dependency-plugin.output>${project.build.directory}
42 </org.apache.maven-dependency-plugin.output>
43 <org.apache.maven-dependency-plugin.pattern>**/*</org.apache.maven-dependency-plugin.pattern>
44 <org.apache.maven-dependency-plugin.type>jar</org.apache.maven-dependency-plugin.type>
45 </properties>
46
47 <repositories>
48 <repository>
49 <id>akka-repo</id>
50 <name>Akka Repository</name>
51 <url>http://repo.akka.io/releases/</url>
52 <releases>
53 <enabled>true</enabled>
54 </releases>
55 <snapshots>
56 <enabled>false</enabled>
57 </snapshots>
58 </repository>
59 <repository>
60 <id>spray-repo</id>
61 <name>Spray Repository</name>
62 <url>http://repo.spray.cc/</url>
63 <releases>
64 <enabled>true</enabled>
65 </releases>
66 <snapshots>
67 <enabled>false</enabled>
68 </snapshots>
69 </repository>
70 </repositories>
71
72 <dependencies>
73 <dependency>
74 <groupId>commons-logging</groupId>
75 <artifactId>commons-logging</artifactId>
76 <version>1.1</version>
77 <scope>test</scope>
78 </dependency>
79 <dependency>
80 <groupId>org.apache.cxf</groupId>
81 <artifactId>cxf-rt-frontend-jaxrs</artifactId>
82 <version>2.5.0</version>
83 </dependency>
84 <dependency>
85 <groupId>org.apache.hadoop</groupId>
86 <artifactId>hadoop-common</artifactId>
87 <exclusions>
88 <exclusion>
89 <groupId>asm</groupId>
90 <artifactId>asm</artifactId>
91 </exclusion>
92 </exclusions>
93 </dependency>
94 <dependency>
95 <groupId>org.apache.hadoop</groupId>
96 <artifactId>hadoop-hdfs</artifactId>
97 </dependency>
98 <dependency>
99 <groupId>org.apache.hadoop</groupId>
100 <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
101 <version>${hadoop.version}</version>
102 </dependency>
103 <!-- explicit dependency is needed to pull down transient deps. such as hadoop-examples -->
104 <dependency>
105 <groupId>${org.apache.maven-dependency-plugin.groupId}</groupId>
106 <artifactId>${org.apache.maven-dependency-plugin.artifactId}</artifactId>
107 <version>${spark-smoke.version}</version>
108 </dependency>
109 </dependencies>
110
111 <build>
112 <plugins>
113
114 <plugin>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-dependency-plugin</artifactId>
117 </plugin>
118
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-failsafe-plugin</artifactId>
122 <version>2.11</version>
123 <configuration>
124 <forkMode>always</forkMode>
125 <systemPropertyVariables>
126 <sparkJar>
127 ${project.build.directory}/${org.apache.maven-dependency-plugin.artifactId}-${org.apache.maven-dependency-plugin.version}.${org.apache.maven-dependency-plugin.type}
128 </sparkJar>
129 </systemPropertyVariables>
130 </configuration>
131 </plugin>
132
133 <plugin>
134 <groupId>org.apache.maven.plugins</groupId>
135 <artifactId>maven-enforcer-plugin</artifactId>
136 <version>1.0</version>
137 <executions>
138 <execution>
139 <id>enforce-property</id>
140 <goals>
141 <goal>enforce</goal>
142 </goals>
143 <configuration>
144 <rules>
145 <requireProperty>
146 <property>SPARK_HOME</property>
147 <message>SPARK_HOME env. variable has to be set</message>
148 </requireProperty>
149 <requireProperty>
150 <property>SPARK_MASTER</property>
151 <message>SPARK_MASTER env. variable has to be set</message>
152 </requireProperty>
153 <requireProperty>
154 <property>HADOOP_CONF_DIR</property>
155 <message>HADOOP_CONF_DIR env. variable has to be set</message>
156 </requireProperty>
157 </rules>
158 <fail>true</fail>
159 </configuration>
160 </execution>
161 </executions>
162 </plugin>
163
164 </plugins>
165 </build>
166 </project>