Preparing for Bigtop 0.7.0 release
[bigtop.git] / bigtop-tests / test-execution / smokes / datafu / 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/maven-v4_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>datafu-smoke-execution</artifactId>
32 <version>0.7.0</version>
33 <name>datafu smoke test execution</name>
34
35 <properties>
36 <org.apache.maven-dependency-plugin.groupId>org.apache.bigtop.itest</org.apache.maven-dependency-plugin.groupId>
37 <org.apache.maven-dependency-plugin.artifactId>datafu-smoke</org.apache.maven-dependency-plugin.artifactId>
38 <org.apache.maven-dependency-plugin.version>${project.version}</org.apache.maven-dependency-plugin.version>
39 <org.apache.maven-dependency-plugin.output>${project.build.directory}</org.apache.maven-dependency-plugin.output>
40 <org.apache.maven-dependency-plugin.type>jar</org.apache.maven-dependency-plugin.type>
41 <org.apache.maven-failsafe-plugin.testInclude>**/*Tests*</org.apache.maven-failsafe-plugin.testInclude>
42
43 <HADOOP_MAPRED_HOME>${env.HADOOP_MAPRED_HOME}</HADOOP_MAPRED_HOME>
44 <HADOOP_CONF_DIR>${env.HADOOP_CONF_DIR}</HADOOP_CONF_DIR>
45 <PIG_HOME>${env.PIG_HOME}</PIG_HOME>
46 </properties>
47
48 <dependencies>
49 <dependency>
50 <groupId>${org.apache.maven-dependency-plugin.groupId}</groupId>
51 <artifactId>${org.apache.maven-dependency-plugin.artifactId}</artifactId>
52 <version>${project.version}</version>
53 </dependency>
54 </dependencies>
55
56 <build>
57 <plugins>
58 <plugin>
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-install-plugin</artifactId>
61 <executions>
62 <execution>
63 <phase>initialize</phase>
64 <goals>
65 <goal>install-file</goal>
66 </goals>
67 </execution>
68 </executions>
69 <configuration>
70 <file>${PIG_HOME}/pig.jar</file>
71 <groupId>org.apache.pig</groupId>
72 <artifactId>pig</artifactId>
73 <version>${pig.version}</version>
74 <packaging>jar</packaging>
75 </configuration>
76 </plugin>
77
78
79 <plugin>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-dependency-plugin</artifactId>
82 </plugin>
83
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-enforcer-plugin</artifactId>
87 <version>1.0</version>
88 <executions>
89 <execution>
90 <id>enforce-property</id>
91 <goals>
92 <goal>enforce</goal>
93 </goals>
94 <configuration>
95 <rules>
96 <requireProperty>
97 <property>HADOOP_MAPRED_HOME</property>
98 <message>HADOOP_MAPRED_HOME env. variable has to be set</message>
99 </requireProperty>
100 <requireProperty>
101 <property>HADOOP_CONF_DIR</property>
102 <message>HADOOP_CONF_DIR env. variable has to be set</message>
103 </requireProperty>
104 <requireProperty>
105 <property>PIG_HOME</property>
106 <message>PIG_HOME env. variable has to be set</message>
107 </requireProperty>
108 </rules>
109 <fail>true</fail>
110 </configuration>
111 </execution>
112 </executions>
113 </plugin>
114
115 <plugin>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-failsafe-plugin</artifactId>
118 <version>2.11</version>
119 <configuration>
120 <forkMode>always</forkMode>
121 <argLine>-Dpigunit.exectype.cluster=true</argLine>
122 <additionalClasspathElements>
123 <additionalClasspathElement>${HADOOP_CONF_DIR}</additionalClasspathElement>
124 </additionalClasspathElements>
125 <systemPropertyVariables>
126 <datafu.jar.dir>${PIG_HOME}</datafu.jar.dir>
127 </systemPropertyVariables>
128 </configuration>
129
130 <!-- Disabling for now: configuration>
131 <testSourceDirectory>src</testSourceDirectory>
132 <testClassesDirectory>target/classes</testClassesDirectory>
133 <skipTests>false</skipTests>
134 <testFailureIgnore>false</testFailureIgnore>
135 <argLine>-Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.endorsed.dirs=${project.build.testOutputDirectory}/endorsed</argLine>
136 </configuration -->
137 </plugin>
138 </plugins>
139 </build>
140 </project>