blob: cdda6b72c029a025701c0d439939ce40803bd74a [file] [log] [blame]
Ianf869bc32014-05-13 17:11:48 -07001<!--
Ian Maxon928bbd12015-09-14 17:12:48 -07002 ! Licensed to the Apache Software Foundation (ASF) under one
3 ! or more contributor license agreements. See the NOTICE file
4 ! distributed with this work for additional information
5 ! regarding copyright ownership. The ASF licenses this file
6 ! to you under the Apache License, Version 2.0 (the
7 ! "License"); you may not use this file except in compliance
8 ! with 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,
13 ! software distributed under the License is distributed on an
14 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ! KIND, either express or implied. See the License for the
16 ! specific language governing permissions and limitations
17 ! under the License.
Ianf869bc32014-05-13 17:11:48 -070018 !-->
Vinayak Borkar9cca81b2013-12-11 21:53:45 -080019<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/xsd/maven-4.0.0.xsd">
ramangrover298be29bd2013-06-11 08:59:44 -070020 <modelVersion>4.0.0</modelVersion>
21 <parent>
Ian Maxonab556d12016-02-02 18:18:05 -080022 <artifactId>apache-asterixdb</artifactId>
Ian Maxonf18bba22015-08-21 12:35:14 -070023 <groupId>org.apache.asterix</groupId>
Ian Maxonc1889c02016-02-10 15:26:24 -080024 <version>0.8.9-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -070025 </parent>
26 <artifactId>asterix-installer</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -070027 <properties>
28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Chris Hilleryed826aa2014-03-21 22:45:41 -070029 <failsafe.test.excludes>**/DmlRecoveryIT.java</failsafe.test.excludes>
Ianf869bc32014-05-13 17:11:48 -070030 <cluster.test.excludes>**/AsterixClusterLifeCycleIT.java</cluster.test.excludes>
Ian Maxonf7b64532015-12-09 17:28:18 -080031 <cluster.extest.excludes>**/ClusterExecutionIT.java</cluster.extest.excludes>
Murtadha Hubail8fc8bf82016-01-23 22:26:59 -080032 <replication.test.excludes>**/ReplicationIT.java</replication.test.excludes>
Ian Maxon6e5f18e2015-11-24 18:02:48 -080033 <appendedResourcesDirectory>${basedir}/src/main/appended-resources</appendedResourcesDirectory>
ramangrover29330a5412013-04-29 20:59:17 -070034 </properties>
vinayakb5ee049d2013-04-06 21:21:29 +000035
Ian4a816dc2014-11-26 15:46:32 -080036 <licenses>
37 <license>
38 <name>Apache License, Version 2.0</name>
39 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
40 <distribution>repo</distribution>
41 <comments>A business-friendly OSS license</comments>
42 </license>
43 </licenses>
44
ramangrover29330a5412013-04-29 20:59:17 -070045 <build>
46 <plugins>
47 <plugin>
ramangrover29330a5412013-04-29 20:59:17 -070048 <groupId>org.jvnet.jaxb2.maven2</groupId>
49 <artifactId>maven-jaxb2-plugin</artifactId>
Till Westmann6212c902014-07-30 15:44:59 -070050 <version>0.9.0</version>
ramangrover29330a5412013-04-29 20:59:17 -070051 <executions>
52 <execution>
53 <id>configuration</id>
54 <goals>
55 <goal>generate</goal>
56 </goals>
57 <configuration>
58 <args>
59 <arg>-Xsetters</arg>
60 <arg>-Xvalue-constructor</arg>
61 </args>
62 <plugins>
63 <plugin>
64 <groupId>org.jvnet.jaxb2_commons</groupId>
65 <artifactId>jaxb2-basics</artifactId>
66 <version>0.6.2</version>
67 </plugin>
68 <plugin>
69 <groupId>org.jvnet.jaxb2_commons</groupId>
70 <artifactId>jaxb2-value-constructor</artifactId>
71 <version>3.0</version>
72 </plugin>
73 </plugins>
74 <schemaDirectory>src/main/resources/schema</schemaDirectory>
75 <schemaIncludes>
76 <include>installer-conf.xsd</include>
77 </schemaIncludes>
Ian Maxonf18bba22015-08-21 12:35:14 -070078 <generatePackage>org.apache.asterix.installer.schema.conf</generatePackage>
ramangrover29330a5412013-04-29 20:59:17 -070079 <generateDirectory>${project.build.directory}/generated-sources/configuration</generateDirectory>
80 </configuration>
81 </execution>
82 <execution>
83 <id>cluster</id>
84 <goals>
85 <goal>generate</goal>
86 </goals>
87 <configuration>
ramangrover29330a5412013-04-29 20:59:17 -070088 <schemaDirectory>src/main/resources/schema</schemaDirectory>
89 <schemaIncludes>
90 <include>cluster.xsd</include>
91 </schemaIncludes>
Ian Maxonf18bba22015-08-21 12:35:14 -070092 <generatePackage>org.apache.asterix.installer.schema.cluster</generatePackage>
ramangrover29330a5412013-04-29 20:59:17 -070093 <bindingDirectory>src/main/resources/schema</bindingDirectory>
94 <bindingIncludes>
95 <bindingInclude>jaxb-bindings.xjb</bindingInclude>
96 </bindingIncludes>
97 <generateDirectory>${project.build.directory}/generated-sources/cluster</generateDirectory>
98 </configuration>
99 </execution>
100 </executions>
101 </plugin>
102 <plugin>
103 <artifactId>maven-assembly-plugin</artifactId>
104 <version>2.2-beta-5</version>
105 <executions>
106 <execution>
107 <configuration>
108 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
109 </configuration>
110 <phase>package</phase>
111 <goals>
112 <goal>attached</goal>
113 </goals>
114 </execution>
115 </executions>
116 </plugin>
117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-failsafe-plugin</artifactId>
120 <version>2.6</version>
Young-Seok778e0192013-09-27 15:09:28 -0700121 <configuration>
122 <runOrder>alphabetical</runOrder>
123 <forkMode>pertest</forkMode>
Michael Blow79821df2016-03-18 23:39:16 -0400124 <argLine>${coverageArgLine}</argLine>
Young-Seok56a41e72013-12-17 17:22:33 -0800125 <excludes>
Chris Hilleryed826aa2014-03-21 22:45:41 -0700126 <exclude>${failsafe.test.excludes}</exclude>
Ianf869bc32014-05-13 17:11:48 -0700127 <exclude>${cluster.test.excludes}</exclude>
Ian Maxonf7b64532015-12-09 17:28:18 -0800128 <exclude>${cluster.extest.excludes}</exclude>
Murtadha Hubail8fc8bf82016-01-23 22:26:59 -0800129 <exclude>${replication.test.excludes}</exclude>
Young-Seok56a41e72013-12-17 17:22:33 -0800130 </excludes>
Young-Seok778e0192013-09-27 15:09:28 -0700131 </configuration>
ramangrover29330a5412013-04-29 20:59:17 -0700132 <executions>
133 <execution>
134 <goals>
135 <goal>integration-test</goal>
136 <goal>verify</goal>
137 </goals>
138 </execution>
139 </executions>
140 </plugin>
Abdullah Alamoudi30904b82016-03-22 19:25:10 +0300141 <plugin>
142 <artifactId>maven-resources-plugin</artifactId>
143 <executions>
144 <execution>
145 <id>copy-external-library</id>
146 <phase>generate-resources</phase>
147 <goals>
148 <goal>copy-resources</goal>
149 </goals>
150 <configuration>
151 <outputDirectory>target/resources/externallib</outputDirectory>
152 <overwrite>true</overwrite>
153 <resources>
154 <resource>
155 <directory>../asterix-external-data/target</directory>
156 <includes>
157 <include>testlib-zip-binary-assembly.zip</include>
158 </includes>
159 </resource>
160 </resources>
161 </configuration>
162 </execution>
163 <execution>
164 <id>copy-test-data</id>
165 <phase>generate-resources</phase>
166 <goals>
167 <goal>copy-resources</goal>
168 </goals>
169 <configuration>
170 <outputDirectory>target/data</outputDirectory>
171 <overwrite>true</overwrite>
172 <resources>
173 <resource>
174 <directory>../asterix-external-data/src/test/resources</directory>
175 <includes>
176 <include>beer.csv</include>
177 </includes>
178 </resource>
179 <resource>
180 <directory>../asterix-app/data/external-parser</directory>
181 <includes>
182 <include>jobads.new</include>
183 </includes>
184 </resource>
185 </resources>
186 </configuration>
187 </execution>
188 </executions>
189 </plugin>
ramangrover29330a5412013-04-29 20:59:17 -0700190 </plugins>
Abdullah Alamoudi30904b82016-03-22 19:25:10 +0300191 </build>
vinayakb5ee049d2013-04-06 21:21:29 +0000192
Ianf869bc32014-05-13 17:11:48 -0700193
194 <profiles>
195 <profile>
196 <id>cluster-tests</id>
197 <activation>
198 <activeByDefault>false</activeByDefault>
199 <property>
200 <name>clusterTest</name>
201 <value>true</value>
202 </property>
203 </activation>
204 <build>
205 <plugins>
206 <plugin>
207 <groupId>net.ju-n.maven.plugins</groupId>
208 <artifactId>vagrant-maven-plugin</artifactId>
209 <version>1.1.0-SNAPSHOT</version>
210 <executions>
211
212 <!-- Before tests: import box, start VM -->
213 <execution>
214 <id>setup-and-start-vagrant-vm</id>
215 <phase>pre-integration-test</phase>
216 <goals>
217 <goal>up</goal>
218 </goals>
219 <configuration>
220 <box>chef/centos-6.5</box>
221 <url>https://vagrantcloud.com/chef/centos-6.5</url>
222 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
223 </configuration>
224 </execution>
225
226 <!-- After tests: shut down, destroy VM -->
227 <execution>
228 <id>destroy-vagrant-vm</id>
229 <phase>post-integration-test</phase>
230 <goals>
231 <goal>destroy</goal>
232 </goals>
233 <configuration>
234 <box>chef/centos-6.5</box>
235 <url>https://vagrantcloud.com/chef/centos-6.5</url>
236 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
237 </configuration>
238 </execution>
239 </executions>
240 </plugin>
241 <plugin>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-failsafe-plugin</artifactId>
244 <version>2.6</version>
245 <configuration>
246 <runOrder>alphabetical</runOrder>
247 <forkMode>pertest</forkMode>
248 <excludes>
249 <exclude>${failsafe.test.excludes}</exclude>
Murtadha Hubail8fc8bf82016-01-23 22:26:59 -0800250 <exclude>${cluster.test.excludes}</exclude>
251 <exclude>${cluster.extest.excludes}</exclude>
Ianf869bc32014-05-13 17:11:48 -0700252 </excludes>
253 </configuration>
254 <executions>
255 <execution>
256 <goals>
257 <goal>integration-test</goal>
258 <goal>verify</goal>
259 </goals>
260 </execution>
261 </executions>
262 </plugin>
263 </plugins>
264 </build>
265 </profile>
266 </profiles>
267
ramangrover29330a5412013-04-29 20:59:17 -0700268 <dependencies>
269 <dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700270 <groupId>args4j</groupId>
271 <artifactId>args4j</artifactId>
272 <version>2.0.12</version>
273 <type>jar</type>
274 <scope>compile</scope>
275 </dependency>
276 <dependency>
277 <groupId>org.apache.zookeeper</groupId>
278 <artifactId>zookeeper</artifactId>
279 <version>3.4.5</version>
280 <exclusions>
281 <exclusion>
282 <groupId>com.sun.jmx</groupId>
283 <artifactId>jmxri</artifactId>
284 </exclusion>
285 <exclusion>
286 <groupId>com.sun.jdmk</groupId>
287 <artifactId>jmxtools</artifactId>
288 </exclusion>
289 <exclusion>
290 <groupId>javax.jms</groupId>
291 <artifactId>jms</artifactId>
292 </exclusion>
293 </exclusions>
294 </dependency>
295 <dependency>
296 <groupId>commons-io</groupId>
297 <artifactId>commons-io</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -0700298 </dependency>
299 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700300 <groupId>org.apache.asterix</groupId>
ramangrover29330a5412013-04-29 20:59:17 -0700301 <artifactId>asterix-events</artifactId>
Ian Maxonc1889c02016-02-10 15:26:24 -0800302 <version>0.8.9-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700303 <type>jar</type>
304 <scope>compile</scope>
305 </dependency>
306 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700307 <groupId>org.apache.asterix</groupId>
ramangrover29330a5412013-04-29 20:59:17 -0700308 <artifactId>asterix-common</artifactId>
Ian Maxonc1889c02016-02-10 15:26:24 -0800309 <version>0.8.9-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700310 <type>test-jar</type>
311 <scope>test</scope>
ramangrover29330a5412013-04-29 20:59:17 -0700312 </dependency>
Abdullah Alamoudi5a78ca02015-11-19 09:23:27 -0800313 <dependency>
314 <groupId>org.apache.asterix</groupId>
315 <artifactId>asterix-app</artifactId>
Ian Maxonc1889c02016-02-10 15:26:24 -0800316 <version>0.8.9-SNAPSHOT</version>
Abdullah Alamoudi5a78ca02015-11-19 09:23:27 -0800317 <type>test-jar</type>
318 <scope>test</scope>
319 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700320 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700321 <groupId>org.apache.asterix</groupId>
Ian Maxonf7b64532015-12-09 17:28:18 -0800322 <artifactId>asterix-app</artifactId>
Ian Maxon3da9d062016-03-16 17:05:31 -0700323 <version>0.8.9-SNAPSHOT</version>
Ian Maxonf7b64532015-12-09 17:28:18 -0800324 <type>test-jar</type>
325 <scope>test</scope>
326 </dependency>
327 <dependency>
328 <groupId>org.apache.asterix</groupId>
ramangrover29330a5412013-04-29 20:59:17 -0700329 <artifactId>asterix-server</artifactId>
Ian Maxonc1889c02016-02-10 15:26:24 -0800330 <version>0.8.9-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700331 <type>zip</type>
332 <classifier>binary-assembly</classifier>
333 </dependency>
ramangrover298be29bd2013-06-11 08:59:44 -0700334 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700335 <groupId>org.apache.asterix</groupId>
Heri Ramampiaro75bb5d372015-09-29 10:56:45 +0200336 <artifactId>asterix-external-data</artifactId>
Ian Maxonc1889c02016-02-10 15:26:24 -0800337 <version>0.8.9-SNAPSHOT</version>
Heri Ramampiaro75bb5d372015-09-29 10:56:45 +0200338 <type>zip</type>
339 <classifier>binary-assembly</classifier>
340 </dependency>
341 <dependency>
342 <groupId>org.apache.asterix</groupId>
ramangrover298be29bd2013-06-11 08:59:44 -0700343 <artifactId>asterix-test-framework</artifactId>
Ian Maxonc1889c02016-02-10 15:26:24 -0800344 <version>0.8.9-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700345 <scope>test</scope>
346 </dependency>
Ian Maxonf7b64532015-12-09 17:28:18 -0800347 <dependency>
348 <groupId>org.apache.hadoop</groupId>
349 <artifactId>hadoop-common</artifactId>
350 <version>${hadoop.version}</version>
351 <scope>test</scope>
352 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700353 </dependencies>
vinayakb5ee049d2013-04-06 21:21:29 +0000354</project>